Quote:
Originally Posted by Turtle91
I think that was just the example he used. You dont have to use h1 + p as the selector you could use any selector. eg:
p.first::first-letter {...}
<h1>Chapter Title</h1>
<p class="dateline">London, Sept. 17, 1940</p>
<p class="first">First paragraph, or any paragraph that you want the drop-cap</p>
|
What you show is close to my preferred method. I really don't like hx+p selectors since all too often there is other text between the header and the first text paragraph which leads to manual fixing.
OTOH, other than for my own use, I tend to dislike drop caps. The last ebook I helped with that used drop caps ended up with a mess of code trying to make the drop caps look
good acceptable in multiple formats and when drop caps just didn't work.