I have been interested for a long time in the best ways to visually enhance epubs by adding CSS code. I have 9 different ways of making DROPcaps and here is the first. I put in all nine of them in my snippet file and can call them up in the stylesheet.css with the trigger followed by ctrl-j to expand. This first one is one of my favorite. It requires you to put class="h" in every H tag first, but lets you mix in more than a single H tag within xhtml chunks. This one lets you follow any H tag with as many as 3 other things before the P tag. Add float:left to convert TALLcap to DROPcap.
/*
NOTE: can put any number of h tags in any single xhtml segment, but every h tag MUST have class="h"
NAME: dropcap (snippet 'dc4' into stylesheet) (put class=h in all H tabs) (can put up to 3 not(p) tags between .h & p)
TRIGGER: dc4
*/
Code:
dropcapdc4,
.h+p,
.h+:not(p)+p,
.h+:not(p)+:not(p)+p,
.h+:not(p)+:not(p)+:not(p)+p
{text-indent:0}
dropcapdc4,
.h+p:first-letter,
.h+:not(p)+p:first-letter,
.h+:not(p)+:not(p)+p:first-letter,
.h+:not(p)+:not(p)+:not(p)+p:first-letter
{color: red;
font-size: 2em; line-height: 0.7em; float: ;}
Best regards, Pop