Scholar Repository
Home>Manual>CSS :after pseudo-element

CSS :after pseudo-element

From http://www.w3schools.com (Copyright Refsnes Data)

CSS :after pseudo-element


CSS Reference Complete CSS Reference


Definition

The :after pseudo-element inserts some content after the content of an element.

Examples

The style below will play a sound after each occurrence of an <h1> element:

h1:after
{
content: url(beep.wav)
}



Try-It-Yourself Demos

Use :after to insert some content after the content of an element (Does not work in IE)
This example demonstrates how to use the :after pseudo-element to insert an image after the content of an element.


CSS Reference Complete CSS Reference

From http://www.w3schools.com (Copyright Refsnes Data)

Home>Manual>CSS :after pseudo-element