![]() |
|
The :first-line pseudo-element allows you to change the first line of a block of text. For example: p:first-line {font-variant: small-caps; font-weight: bold; color: blue} Some newspaper articles do this. They might, for example, print the first line in capitals and in bold.
Not all browsers support this property; Internet Explorer 5.5 does but earlier versions do not. You should also note that only certain properties apply to first-line. You can use font properties, color properties, background properties, word-spacing, letter-spacing, text-decoration, vertical-align, line-height, text-shadow and clear. |
More information a:link, a:active and a:visited first-line |