View Single Post
Old 07-25-2012, 10:46 PM   #1
marqpdx
Junior Member
marqpdx began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: kindle touch
margin-top not applying for paragraphs

hello,

i have an external style sheet i'm using when converting from an odt import to a mobi output.

In my stylesheet, i have this, which works fine:

Code:
h1.P-MainBreaks {
  margin-top:5em;
}
That seems to work b/c it's an H1

But this here, doesn't stick -- the margin-top doesn't get set in the mobi file, even when i preview it for Kindle Fire.

Code:
.P-HeadQuote {
  margin-top:2em;
}
In the odfpy.css, there is a listing for .P-HeadQuote, with a margin-top call, but my css doesn't seem to override the margin-top. i can add font-style:italic to my .P-HeadQuote and it works, so i know my css file is being read.

Any thoughts?
thx,
m
marqpdx is offline   Reply With Quote