Responsive image not resizing proportionately.

Working a redesign the image on the home page were responding to the the size of the browser, but only the width was changing. Found this article on the web that solved my problem.

http://www.456bereastreet.com/archive/201306/how_to_proportionally_scale_images_that_have_dimension_attributes/

The CSS for the img was:

img {      max-width: 100%;
}

img {
max-width: 100%;
height: auto;
}

I hope this helps someone else.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *