Answers for "background css to have image stretch full 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
3

html background image fit to screen

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
Posted by: Guest on May-11-2020

Code answers related to "background css to have image stretch full screen"

Browse Popular Code Answers by Language