, , , div col1 col2 height: 100%. .
:
<div id='newdiv' style="display:flex; flex-direction:row; height:100%">
<div style="background:#ffd0d0"> Col 1 </div>
<div> Col 2 </div>
</div>
, div : div, .
, , :
100% + (computed height of header div) > viewport height = vertical scrollbar
flexbox . .
, display: flex, , ( ). height , height: 100% flex.
html, body { height: 100%; }
<body style="margin:0">
<div style="height:100%;display:flex;flex-direction:column">
<div style="background:#d0d0ff">
This is a header
</div>
<div style="background:#d0ffd0;flex-grow:1; display: flex;">
<div id='newdiv' style="display:flex;">
<div style="background:#ffd0d0; display: flex;"> Col 1 </div>
<div> Col 2 </div>
</div>
</div>
</div>
</body>
Hide result.
display: flexheight: 100%