I am developing a CMS and my client requires a responsive grid of posts in the thumbnail format. My problem is that I cannot control all the images they will use and am looking for a way to set a height in proportion to the original width of the image used.
This will make more sense with this jsfiddle: http://jsfiddle.net/pjwoma2/U2ZkU/
As you can see, the images are of different heights and it throws off the grid. What I want is to set a specific height to width proportion of the class .two
and just set overflow: hidden
if the image height is beyond that of the predetermined proportional height of the .two
div.
Is there a script which can even do this?