I have the following code in my CSS
.box {
position: relative;
min-height: 113px;
overflow: hidden;
border: 1px solid #ccc;
}
.box img {
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
margin: auto;
min-width: 202px;
width: 100%;
height:auto;
}
<div class="box">image goes here</div>
For some reason this works perfectly for Chrome, Safari and IE.... but in Firefox the image does not center in its "BOX" container.
Does firefox not support this method?