Em3 Dropcaps

Add a faux HTML tag to your repertoire- <d> … </d> - to allow you to have dropped capital introductions to your posts (as for this one).

It’s all based on a neat effect I found in the archives at Mandarin Design and inspired by Lynne’s comment about the hassle of having to code it by hand.

The Variables
N/A.
 
The Code
View it as a text file so you can read it first - save this as em3_dropcaps.php and upload it to your wp-content/plugins folder.
 
The Notes
Um. What’s there to say? If you want to change the text colour, just edit the color:#000000; to something like color:#000066; and you can even add a background colour by including background-color: #ccccff; in the style as I have done, should you wish.
 
The Instructions
To use the plugin, save the text file in wp-content/plugins as em3_dropcaps.php, activate it and use the code <d> … </d> around the letter you want “dropped”. The code for this page, for example, starts:
<d>A</d>dd a faux HTML tag

Leave a Reply