Description »

Used to add content after an element.

Details »

This pseudo-element is used to append a selector's element with some content. Under typical circumstances, the property, content, is used with this so that content can be displayed. This is handy dandy for most browsers, but to get this to work in Internet Explorer, a !DOCTYPE specification is required.

Examples »

On this page, the :after pseudo-element is used in order to display an exclamation mark at the end of each <h4> heading.

h4:after{    content: "!"; }

Try It on the CSS Zone Sandbox!

Base CSS »

Not defined in Base CSS.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License