View Single Post
Old 02-18-2011, 05:07 AM   #56
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by Jellby View Post
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.
cybmole is offline   Reply With Quote