jquery - Disproportionate scaling/ weird truncation of images in Mobile Safari -


we display 6 images on simple web page.

they shown same dimensions, 320px 180px. images larger these dimensions , scaled down browser.

however, fourth , fifth images scaled disproportionately in mobile safari though images fine (with proper proportions) on desktop.

if show 3 images, rendered properly.

does have limited processing power on iphone?

what options rendering images proportionately?

we're using jquery.

web page: http://www.panabee.com/potsticker

your images set 100% , 180px, unless browser 320px wide images going distorted.

you set .stream class 320px wide.

i'd recommend using image tag.

set image width 100%, , leave height undefined. if need have images cropped, put them in element , set height , overflow.

<div style="height:180px; overflow-y:hidden"><img .... 

although might best prepare images ahead of time have same proportions.

if need image bit more narrow, can set width of parent of element.

also, want use lower res images mobile... images huge.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -