CSS2 Test Suite: 5.12.3 :before and :after

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

H3:before {content: "An H3 ";}
P.special:before {content: "Special! ";}
P.special:first-letter {color: green;}
P.special:after {content: " -- The End.";}

This H3 element should have generated content at its beginning.

This paragraph should have no generated content either before or after its content.

This paragraph should start with the word "Special!" and the first letter "S" should be green. Also, the paragraph should end with the words "The End." preceded by a double-dash composed of two hyphens. That is all.


[index page] [section] [Previous] [Next] [Specification]