Answers for "how to get background image to fit container"

CSS
1

stretch background image to fit div

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

Code answers related to "how to get background image to fit container"

Browse Popular Code Answers by Language