Tutorial 7 - Floating a scaleable drop cap

Step 5 - Set a line-height

To make the drop cap line up with the text alongside, set the line-height. In this case, around 83% seems to work. Like the font-size, these figures can be adjusted to suit your own needs.

Go to all steps combined →

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.


CSS CODE
.dropcap
{
float: left;
width: .7em;
font-size: 4em;
line-height: 83%;
}

HTML CODE
<p>
<span class="dropcap">L</span>orem ipsum dolor sit amet, consectetuer...
</p>
Other Max Design articles and presentations
Associated with webstandardsgroup.org