Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2011, 07:59 AM   #1
DanBenton
Member
DanBenton began at the beginning.
 
Posts: 17
Karma: 20
Join Date: Feb 2010
Location: London
Device: Kindle
Tinted backgrounds boxes - epub and Mobi

Hi

A pretty dull question to start off, so apologies to any casual readers.
Trying to get my head around what I need to do to make epub files that can export reasonably easily to Mobi.
Kindle spacing is a bit of an issue but that's quick to fix; the thing that's really bugging me is spacing on div boxes with a background colour: the spacing looks fine in epub, but as soon as I convert the file to Mobi and display on Kindle Previewer for iPad, the box tint starts right on the heels of the previous paragraph and then cuts off immediately at the end of the boxed text.
I've tried various combinations of margin- and padding-top/bottom but with no luck. The only reliable way I found of doing it keeping the margins at 0 and then adding a para with a non-breaking space before and after, but that can't be the only way of doing it. What am I missing?!
Thanks for bearing with!
Dan
DanBenton is offline   Reply With Quote
Old 01-28-2011, 08:22 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The Mobipocket format, and probably its box model, is very simple. All vertical spacing is done through the "height" property, which equals top-margin, or top-padding, it seems. I wouldn't be surprised if your solution is the only working one.
Jellby is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backgrounds / resolution of NC? coolbreeze Nook Color & Nook Tablet 3 11-30-2010 11:07 PM
Kindle 2 Sleep Backgrounds (Screensavers) unrequited Kindle Developer's Corner 15 07-26-2010 11:18 PM
Neo Some How-to-questions, change screen saver, add www links, finding note backgrounds omega3 BeBook 3 06-19-2010 07:21 AM
Epub to LRF no problem, Epub to Mobi indexerror Rogier Calibre 3 06-09-2009 11:42 AM
Boxes and boxes of books Elsi Lounge 14 07-22-2008 08:04 PM


All times are GMT -4. The time now is 01:38 AM.


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