First letter of any block level element can be styled using the ::first-letter selectors.
The following CSS properties can be used with the ::first-letter selector
- font
- color
- background
- margin
- padding
- border
- text-decoration
- vertical-align(float should be none)
- text-transform
- line-height
- clear
- float
First line of any block level element can be styled using the ::first-line selectors.
The following CSS properties can be used with the ::first-line selector.
- font properties
- color properties
- background properties
- word-spacing
- letter-spacing
- text-decoration
- vertical-align
- text-transform
- line-height
- clear
Remember that these selectors can only be applied to block level elements.
Leave a Reply