View Single Post
Old 11-18-2015, 08:19 AM   #300
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by jackie_w View Post
Try removing all occurrences of !important from your css file(s), including the extra_css. I don't know why but !important plus rebuilding the css file can be a toxic combination.
The whole goal of the extra css (in my case) is overriding values in the current stylesheet.
Now I can't find the current topic back anymore because otherwise i would had placed it there, but I was told that when I don't use the !important "flag" the values in the extra.css is just added to the normal .css of the book and if that contains other values it will follows them.
So if there is already a margin-top of 1em in it, you can only override that with a margin-top=0!important (if that isn't true, I lie because people told me that is) so that is why i use the whole extra css.. I can edit a whole lot with Sigil, but now the wsyiwyg interface seems to give another result when I open it in the book..

Quote:
Originally Posted by jackie_w View Post
Try removing all occurrences of !important from your css file(s), including the extra_css. I don't know why but !important plus rebuilding the css file can be a toxic combination.
And Davidfor, I removed the !important line from the transferred book.
Then the problem is gone indeed, but the whole goal from that flag was ovveriding.. but it seems that when it is there, it just skip the entire .css
But I can't see what is wrong with it, it seems that an !important is wrong, but Geoffr uses the same flag in a patch ??

Last edited by Nick_1964; 11-18-2015 at 08:27 AM.
Nick_1964 is offline   Reply With Quote