I have the following structure;
<body>
<div id="splash">
<img /> <!-- 512x512 -->
<progress></progress>
<img /> <!-- 512x512 -->
</div>
</body>
And this css;
html, body {
height: 100%;
}
#splash {
max-height: 100%; /* does nothing */
}
#splash img {
max-width: 100%;
height: auto;
}
This results in the entire div scrolling to fit within the width of the browser window. Currently this also scales the div in height, pushing the contents below the bottom bounds of the browser window.
Is it possible to also scale the div vertically such that its contents shrink so no part of it drops below the bottom bound of the browser window?