0

the code below displays the image multiple time like into 10 different image, need it to be full image..

<HTML>

<BODY >

<style>
body {background-image:url('back1.jpg');}
</style>

</BODY>
</HTML>
user2116287
  • 77
  • 3
  • 10

4 Answers4

4

Something like this has always worked for me.

body {
    background: url(cool-image.jpg) no-repeat center center;
    top:0;
    left:0;
    min-width:100%;
    min-height:100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
   background-size: cover; 
}

</style>
KleverKrypto
  • 518
  • 4
  • 14
2

Try this...

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Jay Bhatt
  • 5,601
  • 5
  • 40
  • 62
1
<HTML>

<BODY >

<style>
body {background-image:url('back1.jpg');background-repeat:no-repeat;} // add the no repeat 
</style>

</BODY>
</HTML>
Brandt Solovij
  • 2,124
  • 13
  • 24
0
background-repeat: no-repeat;
background-size: cover;
Robert Owen
  • 930
  • 7
  • 12