Answers for "css scale image down as window"

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
1

css resizing image with window

img {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}
Posted by: Guest on October-04-2021

Browse Popular Code Answers by Language