Thursday 5 December 2013

CSS : FIRST-LINE PSEUDO-ELEMENT


The :first-line Pseudo-element

The "first-line" pseudo-element is used to add a special style to the first line of a text.
In the following example the browser formats the first line of text in a p element according to the style in the "first-line" pseudo-element (where the browser breaks the line, depends on the size of the browser window):


Example

p:first-line 
{
color:#ff0000;
font-variant:small-caps;
}

HINT: The "first-line" pseudo-element can only be used with block-level elements.
HINT: The following properties apply to the "first-line" pseudo-element:

No comments:

Post a Comment

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...