View Single Post
Old 02-10-2020, 05:55 PM   #13
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 331
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
<style>
dropcap, h1 ~ p:first-of-type:first-letter, h2 + p:first-letter, h2 + img + p:first-letter, h2 + img + img + p:first-letter {
color: red;
font-size: 2em;
line-height: 1em;
float: none;
/*float:none makes TALLcap*/}
dropcap, h1 + p, h2 + p, h1 + img + p, h2 + img + p, h2 + img + img + p {
text-indent: 0;}</style>

The above works good for me. I put the dummy word 'dropcap' first to alphabetize the css. The 'text-indent:0;' makes the first paragraph of a chapter nonindented for the dropcap. I inserted 'img' in between 'h1' and 'p' because quite often I want a dropcap after an h1 which is followed by an image, then a p. This method automatically takes care of any double-quote starting the first paragraph. I prefer a TALLcap to a DROPcap, but it is a one word change. You can add h3 etc. if necessary. With this method you do not have to do anything at all in the text itself. Best regards, Pop
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-02-10 16-51-03.png
Views:	295
Size:	636.8 KB
ID:	177061   Click image for larger version

Name:	Screenshot from 2020-02-10 16-53-39.png
Views:	365
Size:	766.2 KB
ID:	177062  
rjwse@aol.com is offline   Reply With Quote