CSS: Background not showing up iPhone or iPad but works on iMac ( Safari )

I've got a full width hero background that is working properly on every browser we tested except for Safari on iPhone and iPad. It does work on iMac Safari. On iPhone and iPad it doesn't appear. Here's the code:


.hero {

margin: 0;

padding: 0;

height: 600px;

background-image: url('../images/heroFullScreen.jpg');

background-attachment: fixed;

background-position: center;

background-repeat: no-repeat;

background-size: cover;

}

You can view the site here: sanitonplastic.ca to recreate the problem if you've got one of the devices.


Really hope someone can help, we're supposed to be going live tomorrow.


Thank you!

iPad Pro 10.5-inch, Wi-Fi, Cellular

Posted on Jan 15, 2021 4:59 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

CSS: Background not showing up iPhone or iPad but works on iMac ( Safari )

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.