+ 7
How to make background-image 100%.?
When I apply background-image in my web page the background is not fully cover the whole page
4 Answers
+ 16
background-size:cover;
+ 7
thanks idolđ
+ 6
Play with this properties:
body{
background-image: url('http://via.placeholder.com/350x150');
/* background-color: #999; */
background-size: 100%;
/* background-repeat: no-repeat; */
/* background-position: 0 0; */
}
0
You may construct a background from img.
Make it position:absolute and left:0; top:0 right:0
It actually depends on how adaptive would your design be.