bell notificationshomepageloginedit profileclubsdmBox

10% popularity   0 Reactions

You will probably run into problems doing it that way, particularly on iBooks. The most reliable method I've found for centering is:

<div class="centered_image">
<img src="image.jpg" alt="Alternate text" />
</div>

With css like this:

div.centered_image {
width: 60%;
margin: 1em 20%;
}
div.centered_image img {
width: 100%;
}

On a very few reading systems (notably the nook), this can cause problems on some images due (I'm guessing) to rounding errors, so you may have to set the margins just a hair smaller (like 19% in the above example).


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

Login to follow story

More posts by @Ashley

0 Comments

Sorted by latest first Latest Oldest Best

 

Back to top