Answers for "how to reduce the size of an image in css without distorting the image"

CSS
3

reduce image size css

.container {
    width: 200px;
    height: 120px;
}

/* Resize images */
.container img {
    width: 100%;
    height: auto;
}
Posted by: Guest on June-23-2021
0

css display original image in smalle width

img.resize {
  width:200px;
  height:40px;
}
Posted by: Guest on April-10-2021

Code answers related to "how to reduce the size of an image in css without distorting the image"

Browse Popular Code Answers by Language