Adam Adam - 7 months ago 8
HTML Question

WordPress CSS - Get Images aligned

In my website I have a row containing 3 images - http://icestartup.com/testsites/site248gfj/. You will be able to see it if you click on the main menu item called "ruimtes".

The 3 images are not having the same height. If i change my screen size the height keeps varying as well. I would like the 3 images to be of same height so that it looks aligned.

PS: I tried to use the CSS: height: 275px; but the image gets stretched! I don't like that. What i wanted was the image to be of same height without changing aspect ratio.

I am stuck with this CSS for an hour. Any idea folks?

Answer

Try max-height: 242px; This will work.!

Comments