Quote:
Originally Posted by Jellby
As far as I know, the "!important" modifier must be specified per property. So, if you want both margins to be high priority, you should use:
Code:
p { margin-top: 0.3em !important ; margin-bottom: 0.3em !important }
or, if you want no side margins, this is shorter:
Code:
p { margin: 0.3em 0 !important }
(When you use "margin" with two values, the first value applies to top and bottom margins, the second value applies to left and right margins. When a value is 0 you don't have to specify the units.)
|
thanks, but been there tried that - i tried only specifying margin bottom- like this:
p {margin-bottom: 0.3em; !important;}
it did not work. I see no space between lines in output
seems that tinkering with the syntax is not addressing root issue that calibre extra-css will not override some explicit stylesheet values, even though it's supposed to ?
& I can;t think an alternative batch approach. it would to be something like explode the epub, edit the styesheet.css with find/replace commends in notepad++, (find all margin-top: 0 replace all with margin-top: 0.3em )then reassemble the epub.
I can do that manually at the keyboard but have not idea how to build a working batch process equivalent.