|
Posted by Martin Magnusson on 06/08/05 18:23
I'm trying to modify my address tag to display <h4>Address:</h4> before
the actual contents of the tag, like this:
address:before{
content: "<h4>Address:</h4>"
}
But when I try this, the actual text is displayed, including the tags,
and it is not parsed by the browser. From what I could gather from the
CSS2 specs, this is actually correct behaviour.
Is the only way to make the before-text look like an h4 to copy the
style from the h4 tag to the address:before block (which works, but
doesn't seem like a very elegant solution)?
/ martin
Navigation:
[Reply to this message]
|