0
How can we increase the size of background images in HTML
4 odpowiedzi
+ 13
background-size CSS property. :)
body {
background-image:url("https://upload.wikimedia.org/wikipedia/commons/5/54/Wallpaper-img_0254.jpg");
background-size:300px;
background-repeat: no-repeat;
}
+ 12
@Leigh it is just for prevent the repetition of that background, if you don't insert it, the background will takes all the available space in height and width repeating itself.
+ 7
@maz, what is the "background-repeat: no-repeat; " useful for in your answer?