Friday 6 July 2012

: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: 
  • font properties ,color properties 
  • background properties
  • margin properties
  • padding properties
  • border properties
  • text-decoration
  • vertical-align (only if "float" is "none")
  • text-transform
  • line-height
  • float
  • clear

1 comment:

  1. Please visit http://enginegearclutch.blogspot.in/ ,here u can find all about CSS and mechanical things

    ReplyDelete