On his old static site he controlled every post with margins and widths so the content is always centered. So I’m just trying to achieve some kind of auto centering css according to whatever the length of the sentences are for each poem.
Those links you showed look awesome bit I don’t know where to begin?
The `margin-auto` only works with a set width (or max-width) on the element…and that’s the one thing we don’t know.
>The client would have to use ul for all the poems?
I don’t know…but I think what you were after was a single (albeit flexible) solution for all the content. I’m unsure if the linked articles are precisely what you need but I think they offer a good jumping off point.
Basically, using the list is, realistically, a ‘hack’ used to avoid the necessity of extra ` ` or `
` tags. I think it’s a reasonable solution but it’s never going to be semantic.
Whether some other element (heck even a table) would be better I don’t know.
@jknetdesign Are you asking how you can center the text horizontally with text being aligned to the left (which is by default)?
If you’re asking about justified text, well, I wouldn’t do that. Hyphenation isn’t supported in all browsers and when justifying text it’s important for hyphens to be in place. Otherwise words will have large gaps between them.