Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
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
Old 07-26-2012, 12:38 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
convert to azw3.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
margin top, bottom, additive or not ? cybmole Conversion 5 02-16-2011 12:33 PM
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } cybmole Conversion 15 02-12-2011 11:57 AM
Top Margin in epub penguintri ePub 8 05-08-2010 08:37 PM
ePub and top margin specification tompe Upload Help 6 01-02-2010 11:24 AM
calibre ignore margin-top and margin-bottom bender Calibre 2 12-11-2009 06:58 AM


All times are GMT -4. The time now is 10:35 AM.


MobileRead.com is a privately owned, operated and funded community.