We have a page design that works great in every browser I've tried, but looks weird when viewed from an iPhone or iPod Touch.
The problem is that the central background image is very high:
#content_container { background-image:url('content-background.jpg'); background-position:top center; background-repeat:no-repeat; width:1020px; height:auto; }
The image content-background.jpg very high (3000 pixels) and is intended to be βexpandedβ because the DIV it grows in is due to the content.
You need to take a look at the page and the full CSS to understand, so I removed everything else from the design and tried the problem using this example:
http://files.codeulike.com/static/cssexample/example.htm
(example consists of 1 html file, 1 css file and 3 images)
You will see that in IE8, Firefox, Chrome you get a beautiful green box. But in the iOS browser, the long, thin background image scales again, and everything goes oddly.
(I am using the 2nd generation iPod Touch iPod, but I assume that the same problem will occur on other iPhone phones and iPod touch).
Any help is much appreciated!
css iphone background-image
codeulike Oct 07 2018-10-10 17:59
source share