Saturday, March 12, 2011

HTML CSS: Add a drop cap

Here's the HTML style code to format the first letter as drop cap:

#stylename: first-letter {float: left; font-size: 400%; line-height: 0.8em}

The line height variable needs to be relative to the font and font size chosen.

No comments:

Post a Comment