Adam Adam - 2 years ago 53
HTML Question

WordPress CSS - Get Images aligned

In my website I have a row containing 3 images - 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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download