Posted By

dsntos on 02/28/09


Tagged

dropcaps capital typography drop-caps


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

lister
Bluewall
thinkcirca
snipplrhanz


Adding Dropcaps to Paragraphs


 / Published in: CSS
 

This adds a dropcap to the first letter of a paragraph when you surround it with span. This method is far more efficient than using the :first-letter psuedo class which does not work on all browsers.

  1. p span.dropcap {float:left;font-size:100px;line-height:0.8;padding:0 10px 10px 0;}

Report this snippet  

You need to login to post a comment.