CSS Generated content. One of the most facinating aspects of CSS2.
A lot of web sites explain how to use the ‘content’ property, (along with the :before and :after pseudo elements) but they often don’t give you real-world examples of what GOOD uses for this property would, or could be. For example:
h1:before
{content: "Chapter "}
Is often used. It makes perfect sense syntactically, but how useful is that? Unless you name your headers One, Two, Three, etc… I don’t see that as being of much use in the real world of web development. With this topic, I thought it would be nice to share all of the facinating uses you may have come accross or made up using the :content property yourself.
Show us only examples which really push the envelope and allows us to broaden our understanding of how we can really begin to take advantage of this property; and all the more so when IE7 hits the streets. I’ll kick off the discussion with some code examples of my own using ‘content’ and explain why they are useful.