I have a div that is absolutely positioned from the top and bottom of the screen.
The images inside the div are set to scale to fill the height, while maintaining proportionate width.
The images are displayed inline, and I've added white-space:nowrap to keep them in a row. Here's the CSS code:
section {position:absolute; top:100px; bottom:100px; font-size:0; left: 0; white-space: nowrap;}
section img {width:auto; height:100%; display:inline;}
This setup works perfectly in Firefox, but in Chrome and Safari there seems to be an issue when resizing the browser. The image adjusts its height properly, but the width remains constant.
You can view my simplified test case here: http://codepen.io/anon/pen/Beasx/
Any suggestions on how to fix this?