View Single Post
Old 09-03-2022, 04:45 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by enuddleyarbl View Post
Originally, in my css stylesheet for my epubs, I had set of styles included in body:

body {
....;
}

In following some suggestions here:

https://wiki.mobileread.com/wiki/CSS_HowTo#Essentials

I also included html:

body, html {
....;
}

What does including that html bit do? I'd assumed it applied those styles to the <html> section of the file as well as to the <body> section (which seemed odd since <body> is part of <html> (I think).

I've just now pulled the html bit out of that statement since it appears to be causing margin issues with Calibre's Viewer:

https://www.mobileread.com/forums/sh...d.php?t=348888

But, I'd still like to know if I should add it back.

I just edit the css of the commercial books I buy to be easier for me to read on my Kobo Forma as a kepub.
You do not need to style HTML with ePub. Also, the body style given in the Wiki is not good. Do not use it.
JSWolf is offline   Reply With Quote