View Single Post
Old 07-25-2023, 12:48 PM   #9
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: 47,125
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by SillyStegosaurus View Post
The entirety of the az3w's css is pretty sparse, and it has no negative values.

Posted below:

#data data="
@page Section1 { size:612pt 792pt; margin:36pt 72pt 72pt }
div.Section1 { page:Section1 }
">#data>

Those margins seem pretty big. I note that there are only 3 values in the margin, not 4, but there should be 4 margins right? (I'm not very familiar with css or html)
That would indicate the book's creator used inline styles instead of CSS classes. Generally those are a mess to clean up. I generally start with Sigil's RemoveInlineStyles to convert them to a CSS stylesheet and go from there.

For what it's worth, that margin shorthand is top, left and right, bottom.

For a quick and dirty start, I would remove the @Page directive.

Last edited by DNSB; 07-25-2023 at 12:51 PM.
DNSB is offline   Reply With Quote