Answers for "responsive image in css"

CSS
3

responsive image in css

.responsive_img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Prevent the image from stretching. So it crops the image to prevent from awkward stretching */
}
Posted by: Guest on May-29-2021
-1

responsive images

<img src="img.png" style="max-width:100%;height:auto;">
Posted by: Guest on May-02-2021

Code answers related to "responsive image in css"

Browse Popular Code Answers by Language