View Single Post
Old 05-07-2014, 09:36 AM   #9
Abekonge
Scripler Project Lead
Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.
 
Abekonge's Avatar
 
Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
For tall thin images or tall images with captions I use the following CSS. It should work uniformly on ADE and iBooks and other devices.

First you need to wrap a div around your image

HTML:
Code:
  <div class="tallImage">
    <img alt="" src="../Images/image.jpg" /></p>
  </div>
And this CSS:
Code:
div.tallImage {
	width:80%;
	height:auto;
	page-break-inside: avoid;
	margin-left:10%; 
}

img {
	max-width:100%; 
	height:auto;
}
The matching width and margin-left forces iBooks to resize the image. You can make these smaller or larger depending on the size of your image. Remember always to test!
Abekonge is offline   Reply With Quote