Answers for "css make image scale with window"

-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
0

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