Hi Expert,
I have created two div as following
<div class="header">
<h1>My Cool Site</h1>
</div>
<div class="main">
Hello world
</div>
The header div should take up as much space it needs. The main div should fill the remaining page height exactly - a scroll bar should not appear. Is this possible to do with CSS only? No JavaScript.
Thanks in advance for any recommendations or solutions.
Can you answer this question?
Write Answer1 Answers