View Single Post
Old 07-13-2026, 04:13 PM   #55
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: 84,150
Karma: 153695583
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 icallaci View Post
Your code demonstrates why I define classes and don't use bare tags. In your CSS, you define h2 + p as non-indented, but it doesn't work because the <h2> tag is followed by <p class="ph"> and not <p>. So all of your first sentences are indented, which I assume is not what you meant to do.
That is a mistake. I meant to go back at the end and add in the correct call to remove the indent. I have fixed it and posted a new version. The h2 + p was supposed to have been removed. But it would noy have caused any problem at all. It would have been a redundancy.

Now have another look and you'll see the corrected code. In cases where there is nothing after the chapter title and the first paragraph, h2 + p works perfectly on a bare p.

Last edited by JSWolf; 07-13-2026 at 04:20 PM.
JSWolf is offline   Reply With Quote