| Description |
While it's easy in HTML to create a
larger font, the trick to a drop
cap is the alignment with the rest
of the text and allowing that text
to wrap nicely. Some people (e.g.
the NY Times) do this with an image
of a letter, but that seems excessive.
Here's another way to do it --
essentially you create a borderless
table, just for the first letter of
your first word.
The version I have here also
capitalizes the rest of the first word.
The usage is dropCap("Some Text String,
but it can be only one word too"). It's
handy because I can do this with my
bodytext in a template,
i.e. dropCap(bodyText) |