I'm trying to accomplish image resizing for height (I'm aware of width:100%, height:auto for width resizing). The below setup works in Safari (~8.02) but Chrome and Firefox (latest) don't care at all. Any ideas? If no CSS hacks exist, I'm open to jQuery solutions (I guess).
body, html {
width:100%;
height:100%;
}
body {
background: lightgreen;
}
.full {
width:100%;
}
.block {
background: lightcoral;
width: 80%;
text-align: center;
position: absolute;
}
.logo {
max-width: 100%;
max-height: 80%;
}
<div class="full">
<div class="block">
<img src="http://placehold.it/709x534" class="logo">
</div>
</div>