Set div to remaining height using CSS with unknown height divs above and below
问题 Is it possible to make the wrapper fill the window height (no scrolling) and the center div scrollable without messing around with pixels and javascript? <div id="wrapper"> <h1>Header</h1> <div id="center"> <div style="height:1000px">high content</div> </div> <div id="footer">Footer</div> </div> Basically I want the header to be visible at the top and the footer to be always visible at the bottom and have a scrollable content in the center which occupies the remaning height. The header,