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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2014, 08:10 PM   #1
MaxHenry
Junior Member
MaxHenry began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2014
Device: none
epub to mobi - keeping fixed images

Hi,

I've been using Calibre for a while, and love it. But I'm new to the CSS side of things.
I have ebooks with images used as the chapter header, and in order to make sure they stay relative to the readers device, I altered the CSS stylesheet as follows to make the image size a percentage:

.calibre4 {
height: 33%;
line-height: 1.2;
width: auto
}
.calibre5 {
height: 33%;
line-height: 1.2;
width: auto
}

This works perfectly for ePub, yet when I convert the altered ePub file to mobi, the changes are lost.

How can I get these alterations into the mobi file, so that images across Kindles will stay relative?

Thanks
MaxHenry is offline   Reply With Quote
Old 07-28-2014, 10:25 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by MaxHenry View Post
Hi,

I've been using Calibre for a while, and love it. But I'm new to the CSS side of things.
I have ebooks with images used as the chapter header, and in order to make sure they stay relative to the readers device, I altered the CSS stylesheet as follows to make the image size a percentage:

.calibre4 {
height: 33%;
line-height: 1.2;
width: auto
}
.calibre5 {
height: 33%;
line-height: 1.2;
width: auto
}

This works perfectly for ePub, yet when I convert the altered ePub file to mobi, the changes are lost.

How can I get these alterations into the mobi file, so that images across Kindles will stay relative?

Thanks
If calibre has an ORIGINAL_EPUB format (created as a backup by default when Polishing or converting from EPUB-to-EPUB) then it will use that for conversions, regardless of the changes you have made to the EPUB format.
eschwartz is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fixed layout mobi to epub fruitlesseffort ePub 2 01-26-2014 04:24 PM
Question about keeping both epub AND mobi formats louwin Library Management 25 05-29-2012 05:16 AM
Problem with images from epub to mobi taskforsome Kindle Formats 9 03-01-2012 12:38 PM
Images as fixed layout epub Dillinquent ePub 6 06-10-2011 02:22 PM


All times are GMT -4. The time now is 04:00 AM.


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