Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2012, 07:09 AM   #1
Alissa @Voices
Junior Member
Alissa @Voices began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: kindle, iphone, palm pre, ebook mac apps
Mobi: Back Covers

How do most of you program your back covers?
1. <p class = ... > statements that define it an image, OR
2. <div> <a id= ...> </a> <image src= ...></<div>

The problem I am having is getting the back cover to consistently center when I convert from epub to mobi in Calibre. It seems if I open the epub in Sigil, center the image (if it is programmed per "1." above), then converted that epub through Calibre I have better success. BUT, that's a lot of steps.

Any help for this rookie?
Thanks!
Alissa @Voices is offline   Reply With Quote
Old 03-30-2012, 09:39 AM   #2
Jeff L
Connoisseur
Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.
 
Posts: 91
Karma: 550240
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
I'm not sure what exactly you're asking.

Once you have an image file, you need to 1) point to it within the code. Then 2) apply a centering and preferably 3) a height and/or width specification as well.

How you do those three things can vary. Your two options are basically the same thing.


Here's an example from a Penguin ebook:

<div class="centerAligned">
<img alt="001" src="doyl_9781440673726_msr_cvi_r1.jpg" style="height:100%; text-align:center;"/>
</div>

This code is applying two different centering instructions. One or the other is
superfluous but it probably comes from a template that the programmer was using.

In case it isn't perfectly obvious, any classes referenced should be defined in the CSS file or in the <STYLE> section of the given page.
Jeff L is offline   Reply With Quote
 
Enthusiast
Old 03-30-2012, 09:42 AM   #3
jbcohen
Wizard
jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.jbcohen ought to be getting tired of karma fortunes by now.
 
jbcohen's Avatar
 
Posts: 2,683
Karma: 3714868
Join Date: Oct 2010
Location: Hufflepuff, #15 Pivet Drive
Device: Kindle 5 Paperwhite
Ah, that's programming excuse me I am going to run down the hall screaming while I pull my hair out. I did that for four years and barely got out with my santity in tact.
jbcohen is offline   Reply With Quote
Old 04-04-2012, 09:33 PM   #4
Alissa @Voices
Junior Member
Alissa @Voices began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: kindle, iphone, palm pre, ebook mac apps
Thanks!

Thanks for the tip re just pointing to the image. If I strip all the coding in the html page, save, open the epub in Sigil and use the formatting to center the image, then save--it works. ??
Anyway, thanks for the kind replies and suggestions!
Alissa @Voices is offline   Reply With Quote
Reply

Tags
back covers of books, center, claibre, mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub or mobi back to .txt? KDA1 Conversion 7 01-26-2012 04:44 PM
Gen3 Can you really switch back and forth between Mobi and ePub? FizzyWater Bookeen 13 09-30-2011 02:44 AM
the back ground color in MOBI, help!! yuxi_kelly Kindle Formats 3 11-27-2010 05:56 PM
Digitizing back covers. JasonB News 17 02-15-2009 11:26 AM
Folding Back Leather Covers CCDMan Sony Reader 45 04-24-2008 12:19 PM


All times are GMT -4. The time now is 08:26 PM.


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