View Single Post
Old 09-07-2024, 12:38 PM   #14
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: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
In the editor, CSS live computed final styles was showing that margins were 0, but the file preview panel had clear greater than 0 left and right margins. I saw there was a second css file that had

Code:
@page {
margin-left: 2em;
margin-right: 2em;
}
and fixing that made the margins visibly zero.

Why weren't the 2em left and right margins reflected is the editor's live CSS panel?
Not sure why it wasn't reflected but @page sets the properties of the page box and can be considered as being outside the live CSS scope. For the most part, the @page is used for setting printed pages. See @page on the Mozilla developer pages. Highly recommended reading if you are suffering from insomnia.
DNSB is offline   Reply With Quote