View Full Version : Resolved How to make the first letter in a paragraph drop (initial, drop cap)
05-04-2009, 02:00 PM
Sorry i didn't know how to explain more in the title.
Anyway here is an image show what i ment
As you can see the 1st letter ( it isn't image, it is text ) is big just like news aricles, so how can i make it like this .
thanks in advance
05-04-2009, 02:38 PM
That is called an initial (http://en.wikipedia.org/wiki/Initial). There are different types of initials and the one that you have in your picture is called a drop cap or drop initial. The most common way to achieve a drop cap in web design is to wrap the first letter of the text with a span:
<p><span class="drop">S</span>nookerman is awesome! Pellentesque habitant morbi tristique
senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae,
ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean
ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien
Then you float the span and change the font-size, line-height and position:
This takes some testing, so play around with the position, the margins and the padding until you are happy with the result.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.