Friday 6 July 2012

CSS :BEFORE PSEUDO ELEMENT


CSS - The :before Pseudo-element

The ":before" pseudo-element can be used to insert some content before the content of an element.
The following example inserts an image before each <h1> element:

Example

h1:before 
{
content:url(smiley.gif);
}

No comments:

Post a Comment