Quote:
Originally Posted by DNSB
What you are running into is one of the reasons that I edit virtually all the ebooks that I read. One recent ebook instead of using a simple text-align: center; to center text used margin-left:auto;, margin-right: auto; which does not work in all cases or with all renderers.
In your sample, there are 3 or more divs wrapped around the line that actually displays the image. You would have to at the combined effects of those styles to see what is actually happening and keep in mind cascade and specificity. See Cascade, specificity, and inheritance for a basic lesson.
|
I edit everything I read, but usually only basic formatting, paragraph indents and stuff like that. But I think I understand (although I can't believe someone tried that instead of just centering?!) I've run into weirdly overcomplicated attempts to do a thing that could be done very simply with a different command; didn't occur to me that something like that could be happening here, but you're absolutely right.
I'll mess about with all those styles and see if I can figure out the problem that way. Thank you!