View Single Post
Old 02-18-2013, 04:19 PM   #2
Turtle91
A Hairy Wizard
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: 3,099
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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