Answers for "how to fit the size of a background image to the size of the screen"

CSS
0

css background image size to fit screen

html {
    height: 100%
}
body {
    background-image:url("../images/myImage.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
Posted by: Guest on February-05-2021

Code answers related to "how to fit the size of a background image to the size of the screen"

Browse Popular Code Answers by Language