View Single Post
Old 07-29-2022, 06:10 PM   #24
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,030
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
At the very top of the CSS, put the following code. The line break-inside is there because of some bug in some firmware.
Code:
htm
  margin-right: -45px;
  margin-left: -45px;
  break-inside: avoid !important;
}
Since I like reading epub and keeping one copy of the ebook around, I wrap the margin setting in a media query. This works quite well since most renderers that don't understand media queries will disregard this entry entirely. Without the wrapper, I have had to play with the margins when using a renderer that disregards media queries or in Jon's code's case, doesn't get presented with the opportunity to disregards the margin settings.

Code:
@media amzn-kf8 {
  html {
    margin-left: -50px;
    margin-right: -50px;
  }
}
DNSB is offline   Reply With Quote