Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2014, 11:56 AM   #1
goios
Junior Member
goios began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2014
Device: kindle paperwhite 10th gen
Changing image width in the economist

The economist recipe sometimes produces images that are too wide for my kobo touch (800x600). I tried to add an extra-css "img {max-width: 100%;}" which does appear in the divs created by the recipe, but the fixed "width" and "height" attributes are still in all the divs corresponding to images. The result is that the images appear distorted.

I tried adding extra-css "img {height: auto}" but it does not replace the fixed heights in those divs. How can I erase the fixed width and height from these divs?

Thanks
goios is offline   Reply With Quote
Old 04-24-2014, 01:29 PM   #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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use preprocess_html in the recipe.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with floating image and relative width jobalcaen ePub 5 08-17-2013 07:53 AM
Is Economist changing things? Gregfromcos Recipes 1 11-10-2011 09:43 PM
Setting Image width on news feed Wiggles Calibre 2 08-13-2010 02:10 AM
Changing Margin Settings to use full width of the Screen??? JBlyth Kobo Reader 9 07-05-2010 09:54 AM
Changing Margin Settings to use full width of the Screen JBlyth Kobo Reader 0 07-02-2010 10:31 PM


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


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