which css property should be used to make a responsive image code example
Example 1: responsive img
.responsive-img {
max-width:100%;
display:block;
height:auto;
}
Example 2: 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 */
}