How do i make an image height and width responsive?

1
Santino Kunde asked a question: How do i make an image height and width responsive?
Asked By: Santino Kunde
Date created: Sat, Jun 26, 2021 6:03 AM
Date updated: Tue, Sep 6, 2022 12:45 AM

Content

Top best answers to the question «How do i make an image height and width responsive»

For responsive (meaning your layout reacts to the size of the window) you can add a class to the image and use @media queries in CSS to change the width of the image. Note that changing the height of the image will mess with the ratio. Width: 100% will break it when you view on a wider are.

Your Answer