Syntax: | <element> : first-letter {value} |
---|---|
Possible Values : | any font manipulating declaration |
Initial Value : | Not defined |
Applies to: | block-level elements |
Inherited : | No |
The first-line pseudo-class is used to add effects to the first-line of any text block (e.g. paragraph)
Example:
p : first-line {font-family : Arial; color : white; background-color : black}
div : first-line {text-transform : uppercase}
.danger : first-line {font-weight : bold; color : yellow; background-color : red}
see example in action