View Single Post
Old 10-04-2024, 09:24 AM   #39
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,044
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post




I agree with your first example because there's really no definition of the-first-paragraph-that-follows-a-section-break... but I would actually define the first paragraph in the chapter as <p class="first"> or <p class="CO"> (chapter opener) instead.

Code:
<h2>Chapter Title</h2>
<p class="first">Yadda yadda yadda.</p>
Then you can apply whatever styles you want to that particular class, not just no-indent. You can even easily set the css to do any number of things depending on your creativity and the capabilities of your device.

Code:
p.first {}
p.first::first-letter {}
p.first::first-line {}
...
...
...
You can even set that css to be responsive and compatible with all kinds of different devices/apps based on screen size, @media, @supports, backwards compatibility for ePub2, as well as all the fun/creative things that are possible JUST because you semantically defined the first paragraph.

And here is the part that you like best, Jon. You can leave it a plane, vanilla no-indent while still having it set semantically. It's a win-win!!
I don't need a class as I can style h2 + p as needed.

Personally, I prefer not to use first. I don't like dropcaps or large first letter or smallcaps, etc. I just like normal text unless there's a reason for a style.
JSWolf is offline   Reply With Quote