0

What changes do I implement so that the backgound image Back.jpg show fulls screen and the content scrolls, rigth now it only works on desktops The content should scroll with the image remain full screen

the image is 1500 width by 1000 height, in phones the image looks shrinked, but on desktops looks fine.

<style>
    html, body {
        margin:0;
        padding:0;
        border:0;
        height:100%;
        background: url(Back.jpg) center no-repeat fixed;
    }
</style>
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
Terep
  • 3
  • 4
  • You are using `background-attachment: fixed;` which does not work that well on iOS (see [here](http://stackoverflow.com/questions/23236158/how-to-replicate-background-attachment-fixed-on-ios) for why). – zgood May 05 '16 at 18:44

2 Answers2

0

background-size:cover; will work with a media query perhaps

0
<style>
    html, body {
        margin:0;
        padding:0;
        border:0;
        height:100%;
        background: url(Back.jpg) no-repeat center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
</style>
Justin
  • 175
  • 8