View Single Post
Old 10-02-2024, 08:48 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,564
Karma: 169115148
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Siavahda View Post
I don't understand what you mean? The headers are supposed to be centred, but I haven't made the files, I don't have an approach, I'm just clicking convert so I can read these on my kindle. What approach am I meant to take?
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.

Last edited by DNSB; 10-02-2024 at 08:51 PM.
DNSB is offline   Reply With Quote