View Single Post
Old 12-06-2012, 11:16 AM   #5
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 163
Karma: 86115
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
to get images to center on iOS you should make them inline-blocks and wrap them in a div:

css:

.my_div { width:100%; text-align:center; }
.my_img { width:80%; display:inline-block; }

html:

<div class="my_div">
<img alt="My Image" class="my_img" src="path/img.jpg" />
</div>

this will center the image, which will be sized to 80% of the width of the frame.
mzmm is offline   Reply With Quote