View Single Post
Old 10-16-2012, 04:06 AM   #14
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Caleń0 View Post
Is there a particular issue with using display: block in this case?
As I said, to center a block reliably you must use a fixed relative width and relative margins (e.g. width: 50%; margin-right: 25;). Otherwise you need to use auto-margins, whose support is not required by the spec (and Adobe-based readers ignore them).

As I said, you need to include the <img> tag inside a block element (<div> or <p>), so it's easier to just give "text-align: center" to the container. Note that "text-align" controls the alignment of the contents of an element, while with "display" and "margin" you try to control the position of the element itself.

Quote:
This is why I'm interested in this h1 solution...I am hoping that the Chapter Detection functionality in Calibre will read the h1 and give it its "rightful place" in the resulting eBook, because h1 is used everywhere else in the book as, both the Chapter title's formatting and obviously the chapter marker to create the TOC. All these other pages using the h1 show up on both Sigil's TOC and the end product's TOC.
Maybe you should ask in the Calibre forum instead, or try disabling structure detection (the structure is already explicit in the TOC, no need to "detect" it), or try with another converter.
Jellby is offline   Reply With Quote