Using background-attachment:fixed in safari on the ipad
Posted
by chris_bcn
on Stack Overflow
See other posts from Stack Overflow
or by chris_bcn
Published on 2010-06-10T02:19:24Z
Indexed on
2010/06/10
2:22 UTC
Read the original article
Hit count: 547
I'm looking to recreate an effect similiar to the popular science app. Basically have one big background image and then have HTML/CSS layer on top of that. When the user scrolls the content, then background-position of the image should remain in place, and not scroll.
Obviously in a 'regular' browser I would use background-attachment:fixed, but this doesn't seem to work on the ipad. I know position:fixed doesn't work as you might expect according to safari spec - but is there any way of achieving this?
© Stack Overflow or respective owner