View Single Post
Old 11-05-2018, 05:12 PM   #6
Rapunzel
Junior Member
Rapunzel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2018
Location: Wisconsin
Device: PocketBook Touch Lux 3
Sorry I haven't been responding: work got super busy with a client deadline.

The specific use case I have is poetry that I want to center on the page. So solutions like RbnJrg's aren't exactly what I'm looking for. I don't want to put a width on the text because it'll either be too narrow (forcing line breaks even though there appears to be plenty of available whitespace left on the page) or too wide (text is off-center). I've used the margin + width + margin method successfully on quoted blocks of prose text. It's just the poems, with short unpredictable line lengths that I'm stuck on.

@Klecks: I know :/ I had high hopes for the floating divs method. I mocked it up in an HTML file that Chrome displayed perfectly, and the CSS is simple enough that I hoped my PocketBook would support it. Sadly, no. And like you said, inline-block only works for shorter pieces of text.

At this point I'm about ready to conclude that there is no nice, pretty, reliable way to center poetry on the page. Phooey.
Rapunzel is offline   Reply With Quote