View Single Post
Old 01-19-2025, 08:07 PM   #13
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 471
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Quote:
Originally Posted by ryder View Post
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.
slm is offline   Reply With Quote