blutorange
0
Q:

css fill div with background image

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;
}
3
div {
  background-image: url("example.com/image.png");
  background-size: 100% 100%;
}
0
/* with CSS 3 */
#yourdiv {  
    background: url('bgimage.jpg') no-repeat;
    background-size: 100%;
}
0

New to Communities?

Join the community