View Single Post
Old 02-08-2016, 11:53 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, declaring a doctype changes the html rendering algorithm (to an obsolete one), which causes the height='100%' to actually be rendered with a height greater than the page height, so the viewer compensates by forcing the image to be alone on a page, and setting its display to block. This prevents the image from being broken up onto two pages.

Either dont uses doctypes, they are pointless, legacy cruft or use margin-left:auto and margin-right:auto with display:block to center you image.
kovidgoyal is offline   Reply With Quote