Quote:
Originally Posted by ryder
Hi everybody, is this code correct to use instead of the "remove spacing between paragraphs" in calibre or would there be some other problems created with it:
p {
margin: 0 !important;
padding: 0;
}
It looks great so far and there are no bugs found by calibre after converting.
Thanks a lot for the help.
|
I think when you are just adding CSS via the conversion tool, the !important is important.
The reason I think this, although I haven't tried your code, is that many years ago (before Kindles and Kobos had much ability to darken fonts or select really dark fonts) I set my conversions to to the equivalent with font-weight and it worked very well. I originally did
*{font-weight:bold}
but the results were inconsistent.
Kovid suggested that I add !important, and it worked consistently.
Of course, I'm a lot less picky than some of the folk on this thread.
Good luck.