Answers for "Using max-width on an image will allow the image to scale down if it has to, but never scale up to be larger than its original size"

-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

Code answers related to "Using max-width on an image will allow the image to scale down if it has to, but never scale up to be larger than its original size"

Browse Popular Code Answers by Language