Quote:
Originally Posted by Tex2002ans
:One advantage is that you can allow yourself access to more complicated CSS selectors in the future. For example, here is RbnJrg showing off every 5th line being numbered:
https://www.mobileread.com/forums/sh...18#post3027118
I would also think it would be easier to control multiple levels of indentation like this:
|
About 80% of the poems I handle are just lines of text and no issues other than line wraps. The others get creative with indents and spaces; and take three times as long as the rest.
Every one of these is different. I'm not going to create a new style for every line of a poem that I will never use again. I hate a stylesheet cluttered with dozens of ad-hoc styles that a few days later I forget about.
I've got a few poem tags that cover the basics (left, centered, right alignment, block indent). The fripperies I do with space characters mostly.
Again, this mirrors the print layout, where I also use basic styles and space characters, so just importing the text and matching CSS/DTP styles will get me most of the way. Though I really wish CSS supported setting tab stops.
(Also, I notice examples of poems in the threads you linked used a <p> tag for the stanza and <br/> at the end of each line, and thus will fall victim to the new prettyprint.)
Quote:
instead of trying to hack together multiple or   at the beginning of lines.
....
Easy peasy consistent coding. And thing of all the headaches you would save your future self.
|
If I see an ebook with spaces to create indents on every para for 500 pages, I'll replace them with CSS.
But I do prefer hacking together spaces to indent a couple of lines one-off to hacking CSS. My future self will thank me for keeping a clean stylesheet that doesn't have an ever growing list of styles used in one poem a year ago. And I don't have to think of a dozen new style names; which often takes longer than writing the actual css.
About the only divs I use are for images, in the eternal struggle to keep captions on the same page as the image they refer to.
CSS is very elegant, but not the only or best choice in every situation.