3 ms·
It's wouldn't be possible if you're only using CSS. See this stackoverflow post [1], or more specifically the spec it references [2] on the CSS content property
by JangoSteve 14y ago
It's wouldn't be possible if you're only using CSS. See this stackoverflow post [1], or more specifically the spec it references [2] on the CSS content property (used by this library).
The acceptable values are:
normal | none | [ string | uri | counter | attr(identifier) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit
You might think, maybe you could insert html by putting the html on an attribute and using the attr() value, but reading further:
This function returns as a string the value of attribute X for the subject of the selector. The string is not parsed by the CSS processor.
[1] http://stackoverflow.com/questions/4505093/css-content-property-inserting-html-instead-string http://stackoverflow.com/questions/4505093/css-content-prope...
[2] http://www.w3.org/TR/CSS21/generate.html#propdef-content http://www.w3.org/TR/CSS21/generate.html#propdef-content