• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Pseudo-Classes and Pseudo-Elements > first-letter Pseudo-Element

7.3. first-letter Pseudo-Element

first-letter is another pseudo-element, designed specifically to give either a “drop-cap” or “initial-cap” appearance to the first letter than appears in a paragraph, an effect often seen in print publications like newspapers and magazines.

This particular pseudo-element takes a bit of planning in order to get the effect to look just right. Listing 7.3 demonstrates how a proper drop-cap effect can be accomplished using the first-letter pseudo-element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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