Answers for "how to resize an image in html and css that is too small to fit in your defined height and width"

2

css resize image to fit div no stretching

.div {
  background-image: url(../images/your-image.png);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
Posted by: Guest on October-06-2020

Code answers related to "how to resize an image in html and css that is too small to fit in your defined height and width"

Browse Popular Code Answers by Language