View Single Post
Old 08-03-2019, 05:14 PM   #1924
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 5,270
Karma: 12221060
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by lumpynose View Post
This problem exists with both this driver and the plain Touch driver.

In the driver settings in the Collections, covers & uploads tab I have Modify CSS checked. In the kobo_extra.css file on the kobo I have

PHP Code:
{
    
text-alignleft !important;

When I upload a book to the Kobo (Forma, latest firmware) and then look at it, it's as if some or all of the formatting has been removed. Paragraphs no longer have the indent that's specified in the book's stylesheet and have a blank line between them, h2 tags are no longer centered, etc.

If I remove the kobo_extra.css from the Kobo and add that line to the bottom of the book's stylesheet then everything works as expected.

This happens with both books I've made as well as books downloaded from Project Gutenberg.
I'm not sure this is going to be any help to you but I've seen this before when the !important attribute is used in CSS. I'm afraid I never got to the bottom of the finer points of why/how the CSS gets wrecked.

As a result, long ago, I decided to ban the use of !important inside any of my own epubs or in kobo_extra.css. I haven't had any problems since.
jackie_w is offline   Reply With Quote