View Single Post
Old 07-15-2015, 05:05 AM   #3
Spinaz
Junior Member
Spinaz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite
Hi!
After a while I tried to modify the indesign file and re-exporting it into a epub3 file.
If someone does happen to have the same probem while working with indesign:
I tried to place the images with "jump object" and not "warp around object shape" like I did...

It seems to work now, but the images are stretched vertically. I'll work on this.

Quote:
Originally Posted by senhal View Post
The main problem is:

This is imposing a picture size...

But, according to me, the full code used is a mess: div inside div, the tag <center>...

The simple way is to include the img inside a div.
For the img you have to specify a width or a height (in this particular case a width), without imposing a size (you can use a percentage).
The div will only center the picture (eventually adding some margins in order to separate the picture and the text).

<p>text</p>
<div class="picture"><img alt="" width="100%" src="../images/00001.jpeg"/></div>
<p>text</p>

In the css:
div.picture{text-indent:0;text-align: center;margin-top:.5em;margin-bottom:.5em}
Thanks I'll try this!
The code is a mess indeed, but it's the default from indesign ( apart from the tag center which I tried to add with no result ) and I didn't touch it yet, apart from some trial and error tests.

Last edited by Spinaz; 07-15-2015 at 05:16 AM.
Spinaz is offline   Reply With Quote