Limit Drop Cap to first letter of document
-
I added a code dropcap, but it appears on every paragraph of Docs. How do I limit the drop cap to Intro Letter only?
Please view wipoutreach.wordpress.com
The blog I need help with is: (visible only to logged in users)
-
Hi there. To make it appear only on the first paragraph, you’ll need to change
p:first-letter { ... }to
p:first-child:first-letter { ... */ }in your custom CSS.
-
-
Thanks for your help, yes I tried that earlier, but because I have h5/intro (scripture) before the body text first-child:first-letter, it only works on pages with without a statement before the main body text.
Is there a code to direct the Drop to the paragraph’s body first letter only?
-
Ahh, gotcha. I missed that when I went in the first time. You should be able to use this:
p:first-of-type:first-letter { ... } -
-
- The topic ‘Limit Drop Cap to first letter of document’ is closed to new replies.