View Single Post
Old 09-01-2019, 12:39 PM   #44
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,581
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
Quote:
Originally Posted by PeterT View Post
I wonder if there might be any applicable guidelines in https://github.com/kobolabs/epub-spe...ster/README.md especially regarding the use of em measurements

Sent from my moto g(7) power using Tapatalk


I think you may have found it!

This seems like it might be the issue:

Quote:
Choosing Selectors

Kobo advises against applying styles to type selectors alone, like the div or span selectors. It is safer to style and easier to debug CSS that is as specific as possible. Increase specificity by selecting for type and class, or by selecting for nesting structure. In addition, Kobo inserts div and span tags during processing to enable user functionality (ex. text highlighting). As a result, any content contained within the added tags will inherit the styling applied in the CSS.
Going more specific by applying spans and classes did work, and it seems this is what they are suggesting. I'd forgotten that kepub has extra div and span tags added.

I sure liked the simplicity of h2 span, but I think I'd rather have a book that, when converted to kepub, looks the same as it would in ADE, Kindle and iBooks.


Sent from my iPad using Tapatalk
graycyn is offline   Reply With Quote