Answers for "how to set the size of the image being displayed for your background img"

CSS
31

background image size css

#example1 {
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: auto;
}

#example2 {
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: 300px 100px;
}
Posted by: Guest on May-28-2020

Code answers related to "how to set the size of the image being displayed for your background img"

Browse Popular Code Answers by Language