I have a single '.home' div with a background image, that I want to fit vertically inside the said div. It works perfectly on mobile, except for iPhone browsing with Mobile Safari.
HTML code:
<div id="home" class="home"> <!-- This div has a background image -->
<div class="overlay sections">
<div class="container text-center">
<div class="row">
<div class="div-menu">
<header class="cd-header">
<div id="cd-logo">
<a href="index.html"><img id="logo-animated" src="assets/images/logos/vera_sing_logo.png" alt="Logo"></a>
</div>
<a class="cd-menu-trigger" href="#main-nav"><span></span></a>
</header>
</div>
</div>
</div>
</div>
</div>
This is the CSS:
.home{
background: url(../images/horizontal/home.jpg) no-repeat center top fixed;
background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
width: 100%;
overflow: hidden;
}
I have an open repository, so you can check the website (and source code) live here: https://fieel.github.io/VeraSings/
If you happen to open it with Mobile Safari, you'll see only the top-left corner of the image, which is obviously not correct. This is correct, browsing with my Android device using Mobile Chrome:
What's causing the compatibility issue? What's the part of my CSS that breaks stuff on Mobile Safari?