Create WordPress Drop Caps

August 1st, 2007
Tags: , ,
Categories: General, WordPress

Drop Caps. Magazines use it. Websites use it. What’s all the rage? A Drop Cap is the first letter of a paragraph that is enlarged to “drop” down two or more lines. So, here is an easy way to create drop caps in WordPress.

1. Add a span to the first letter of your post with a “class” called dropcaps. See the example below.

<span class=”dropcaps”>D</span>rop Caps. Magazines use it.

2. Next, add the followng CSS code to your WordPress Theme’s stylesheet.

.dropcaps {
font-family: Georgia, Times New Roman, Serif;
font-weight:bold;
float:left;
line-height:30px;
font-size:36px;
padding: 3px 3px 0 0;
}

3. That’s it. See the example above.

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
  • Technorati
  • FriendFeed
  • Live
  • MySpace
  • Ping.fm
  • Posterous
  • Reddit
  • Slashdot
  • Suggest to Techmeme via Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Print
  • email
  • PDF
  • RSS

8 Responses to: Create WordPress Drop Caps

  1. Maj says:

    This doesn’t seem to do anything.

  2. Aziz says:

    pravelno written:)

  3. Ed says:

    Works great for me.

  4. Carey says:

    Yay! Thank you

  5. Vit says:

    Great! Exact what i need.

  6. [...] need a flexible way of using drop caps and employing them right where you want them. To this end, Ulysses Online has a great guide on how to create drop caps in just a few easy steps. You’ll have to be able to edit your CSS file (so this won’t [...]

  7. S.Pradeep Kumar says:

    I don’t seem to find any code for changing the color here buddy ?

    How to change red into some other color ? Cheers !

Leave a Reply