Answers for "html auto background image in html"

CSS
22

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
5

how to change background image in html

<style>
div {
  background-image: url('img_girl.jpg');
}
</style>
Posted by: Guest on July-24-2020

Browse Popular Code Answers by Language