Reputation: 6531
I was trying to use fixed auto scaling background image for a website design I'm working on. Everything works fine here...
http://cssdeck.com/labs/3e2as8xw
...however, the scaling and fixed background combination does not work on iPad. For some reason, when the fixed background-attachment is activated in css, the background image tries to scale according to the whole size of the body (the whole text, not the screenArea/body). Therefore, the image becomes useless and too big if the site content is too long.
As far as I can google, it looks like background-attachment is not suported for iPad. I'm looking for alternative solutions in this case. Any ideas?
Upvotes: 1
Views: 1432
Reputation: 2102
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
Upvotes: 1
Reputation: 3384
Use ios meta tags.
This will prevent scaling:
<meta name = "viewport" content = "width = 320, initial-scale = 2.3, user-scalable = no">
Upvotes: 0