I'm encountering some challenges trying to display a large jpg file properly on an iPad 2. The image is 9577x600 pixels and is being used as a background image on a div. I have specified -webkit-background-size
on that div and set it to the same dimensions as the image. Additionally, I configured my viewport meta tag as follows:
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
The CSS code I am using is:
#content { position: relative; background: url(../images/infographic.jpg) left top no-repeat; width: 9577px; height: 600px; -webkit-background-size: 9577px 600px; }
Below is a screenshot showing how the image appears on the iPad compared to what I see on my desktop:
Can anyone advise on what might be causing this issue?