I have an image of height 600px. And I'm using it with an img tag, than a background image. Reason is because of responsiveness. I want the image to resize based on screen sizes. But i want my image to be of height 300px. Now if i set the max-height:300px
and width:100%
. The image looks stretched. Is there a way for the image to be proportioned as well as responsive based on screen sizes?
This is for a bootstrap carousel image.