Jump to the main content.

Tips&Tricks for the modern day web designer

Use CSS for generating purely presentational content

Submitted by: WebD&D on June 9, 2010.

The content property was introduced in CSS 2.1 to add generated content to the :before and :after pseudo-elements. Given that IE 8 also now supports content, we really are getting to the point where can use this CSS feature in our production work. Just be sure to use it only in appropriate circumstances, and be mindful of the accessibility implications that generated content still has.

Read the outside article: CSS generated content techniques

1 Star2 Stars3 Stars4 Stars5 Stars

Loading ... Loading ...