View Single Post
Old 02-18-2013, 04:19 PM   #2
Turtle91
Guru
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 669
Karma: 3807234
Join Date: Dec 2012
Location: Shannon, Ireland today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
I hate it when you go searching forever on a problem....then you ask a question...and 2 minutes later you get an idea...

I didn't think this would work because background-size is a CSS3 attribute...but it does...at least in Sigil.

I have this as my cover.html file:
Quote:
<body style='background:url("../Images/cover.jpg") no-repeat fixed center center; background-size:contain'>
<h1 title="Cover"></h1>
</body>
Of course kindle Previewer doesn't support Max-Height and Max-Width...it strips them out...and ADE displayed fine when it opens...but then barfs when I use the TOC to go back to the cover...Sony Reader accepts it, but doesn't center the image...

so...there is hopefully a better way of doing it??

Last edited by Turtle91; 02-18-2013 at 04:55 PM.
Turtle91 is offline   Reply With Quote