Tuesday, 3 December 2013

CSS : FIRST-LETTER PSEUDO-ELEMENT


The :first-letter Pseudo-element

The "first-letter" pseudo-element is used to add a special style to the first letter of a text:


Example

p:first-letter 
{
color:#ff0000;
font-size:xx-large;
}

Note: The "first-letter" pseudo-element can only be used with block-level elements.
Note: The following properties apply to the "first-letter" 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 : ...