Answers for "css how to give an image height and width widthout stretching the image"

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 "css how to give an image height and width widthout stretching the image"

Browse Popular Code Answers by Language