Here is an image along with its corresponding CSS:
.containerImg {
height: 420px;
margin-top: 0;
position: relative;
width: 100%;
}
.img {
margin: 0 auto;
position: absolute; /*I cannot remove the position:absolute unfortunately*/
}
Below is the markup used:
<div class="containerImg">
<img class="img" alt="" src="img//section_es_2442.jpg">
<div class="info">
…
</div>
<div class="clear"></div>
</div>
If you take a look at the post, you'll notice that the image isn't the only element within .container
The desired behavior is for the image to utilize all dimensions of .container and crop the image while maintaining the original ratio. The images are sized at 1600x500 (3.2:1)
Any suggestions on how I can make this work?