Let's Think About It
<div id="foo">
Lorem ipsum
</div>
<div id="bar">
sit amet
</div>
Is there a way to maintain the size of foo as it is while allowing bar to fill the remaining space on the page when the window size changes, using just CSS? foo acts as a fixed-sized top banner. What should be the height property of bar in this case? Definitely,
screen.height-padding-getElementById("foo").style.height
However, my preference would be to achieve this without using a script.