Answers for "how to keep the ratio of image fixed in css"

CSS
3

css keep image ratio

img {
  object-fit: cover;
  width: 100px;
  height:100px;
}
Posted by: Guest on November-03-2020

Code answers related to "how to keep the ratio of image fixed in css"

Browse Popular Code Answers by Language