I'm currently using CSS for full screen background one my single page website (composed of several DIVs of 1300px height under each other). It works well, the background image is full screen on the visible part of the page, but it doesn't work on ipad. The issue with backstretch is that if I include this code
<script>
$("#medias").backstretch("../images/bg-18.jpg");
within my "medias" DIV, the background image covers the full size of my DIV (so 1300 height * width) which is not what I want it to cover the browser window only Many thanks
Example of a DIV with CSS method:
#medias {
height: 1300px;
background: #8aba56;
padding-top: 150px;
background: url(../images/bg-18.jpg) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-ms-background-size: cover;
-o-background-size: cover;
}