View Single Post
Old 12-12-2012, 10:32 PM   PM User | #2
StevenHu
Regular Coder

 
Join Date: Jun 2011
Location: CA
Posts: 105
Thanks: 0
Thanked 10 Times in 10 Posts
StevenHu is an unknown quantity at this point
If you use the following, putting your image inside a div, size your images for the desktop screen, but when viewed in a mobile phone, the images will resize to fit:

<div style="width:100%">
<img src="xxxx.jpg" width="900px" style="max-width:100%">
</div>

The max-width will make sure the image never goes outside its container element -- in this case, the div.
__________________
Steve Husting
http://iphonedevlog.wordpress.com
StevenHu is offline   Reply With Quote