Answers for "how to scale an image down in css"

0

css img scale-down

/*for scaling down  */
img {
  max-height: 70px;
  max-width: 70px;
  object-fit: scale-down;
}
Posted by: Guest on June-03-2021
-2

Scaling Images and Videos css

.container {
  width: 50%;
  height: 200px;
  overflow: hidden;
}

.container img {
  max-width: 100%;
  height: auto;
  display: block;
}
Posted by: Guest on May-03-2020
1

scale down image css

img.resize {
    width: 540px; /* you can use % */
    height: auto;
}
Posted by: Guest on January-29-2021

Browse Popular Code Answers by Language