Latest

recent

CSS :before pseudo-element

Definition

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

Examples

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

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

Goto CSS3 and CSS2 complete reference

CSS :before pseudo-element Reviewed by 1000sourcecodes on 09:42 Rating: 5
Powered by Blogger.