I poured through earlier responses, but cannot seem to find the exact answer.
I am looking to create a container div that holds images of varying widths with a common margin. I'd like to maintain a consistent height as the images resize as the width of the div expands and contracts due to browser size.
I have a jsfiddle, but cannot figure it out: https://jsfiddle.net/s8p4wv8m/
max-width: 100%;
height: auto;
Is there something with height I am missing?
I can get the responsive portion, but I'm looking to make the height of all images consistent without affecting the aspect ratio as the browser resizes.
The images will not necessarily be on a grid system either--they will be of varying width.
Thanks so much.
You can add "max-height: 62px;" to all your imgs restricting all images to the height of the shortest image, hence in your fiddle example... is "62px"