1

I have a div with a background-size:cover and background-attachment:fixed. This works fine except for on iOS.

#featured {
    background:url(img/mountains.jpg) center bottom no-repeat fixed;
    background-size:cover;
    padding-bottom:65px;
}

The problem is similar to these questions: Using background-attachment:fixed in safari on the ipad Fixed Position Background on iOS

But not quite. Every solution I've found is for a fixed background on the body tag. But I need a fixed background within a div in the middle of a dynamic page. So setting a fake div to position:fixed isn't going to work for me.

Is there another way to make a fixed position background work on iOS? Do I need jQuery?

Community
  • 1
  • 1
LBF
  • 1,133
  • 2
  • 14
  • 39
  • what happens on iOS? can you provide a link? – MilkyTech Jun 06 '14 at 18:00
  • It shows the full size of the background image (not cover/contain) with normal positioning (not fixed). – LBF Jun 18 '14 at 16:50
  • Still don't want to provide a link or a fiddle so we can see the problem? It is not possible to solve your problem with the limited info provided. – MilkyTech Jun 18 '14 at 22:52

0 Answers0