• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

7.2. first-line Pseudo-Element

first-line is a pseudo-element meant to reproduce the type of text sometimes seen in the first lines of newspapers and magazines, setting it apart from the rest of the text in a paragraph. It changes the way the first line of text in a paragraph is displayed. Using the first-line pseudo-element, you can change the color, background, spacing or other ways in which the first line of text in a paragraph is displayed.

Listing 7.2 shows how this can be used in practice. The results can be seen in Figure 7-2.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint