View Single Post
Old 10-15-2022, 08:48 AM   #11
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by bookman156 View Post
Not sure why you need divs, is there any advantage in that approach do you think?
I explained my poetry code in:

(It's towards the very end of that post in "Side Note #2".)

I use 3 classes:
  • <div class="poem">
    • Gets its own top/bottom/left/right spacing.
  • <div class="stanza">
    • Gets its own top/bottom spacing.
    • Helps organize + keep each stanza together.
  • <p class="poem">
    • Each line + Negative indent.

All the details are described in that thread, especially the usage of page-break-inside: avoid.

Advantages are in code readability/maintainability + very easy to tweak.

Quote:
Originally Posted by Jellby View Post
Nowadays I use something like:

[...]
Yep. I second anything that Jellby says.

(He's the one who taught me about all that poetry stuff years and years ago.)

We agree on 99%, and only disagree on some minor differences (he says <div>, because "poetry isn't paragraphs"... and I still insist on <p>).

Last edited by Tex2002ans; 10-15-2022 at 09:02 AM.
Tex2002ans is offline   Reply With Quote