Hi Guys,
I would like to display full screen images with no scaling in Safari when viewing in portrait mode. I was just curious as to why I have to set my image widths to 320px in my CSS when I have the following in my html:
If the width is set to device-width wouldn't that mean I should have my images set to 640px? as the iPhone's resolution is 960x640!?
I tried setting scale to zero and then setting my image widths as 640px but that leaves space either side of them.
Am I missing something here?
I guess my real question is, what is the actual visible resolution in Safari when scale is set to 0 and also set to 1. As it seems neither of them are 640px.
Thanks in advance
I would like to display full screen images with no scaling in Safari when viewing in portrait mode. I was just curious as to why I have to set my image widths to 320px in my CSS when I have the following in my html:
Code:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
If the width is set to device-width wouldn't that mean I should have my images set to 640px? as the iPhone's resolution is 960x640!?
I tried setting scale to zero and then setting my image widths as 640px but that leaves space either side of them.
Am I missing something here?
I guess my real question is, what is the actual visible resolution in Safari when scale is set to 0 and also set to 1. As it seems neither of them are 640px.
Thanks in advance