In wordpress, I want to show a height reduced image but keeping width and ratio. The image is 400px large and 300px height. I want it 400px large but only 200px height, and centered.
This solution may help me but is uses div ? Crop and center image without using background-image But I can't add any div around image because wordpress doesnt create any. May be could I create a div using PHP ou JS ?
Here is the html created by Wordpres :
<p>
<a href="http://finance.blog.lemonde.fr/files/2012/09/IMG-20120909-00051.jpg">
<img width="400" height="300" src="http://finance.blog.lemonde.fr/files/2012/09/IMG-20120909-00051.jpg">
</a>
</p>
and a JSFiddle to try : http://jsfiddle.net/v4w90e29/
If anyone can help me, thanks a lot !!!