I am looking to create a webpage that takes up the entire browser window. However, I also need to display a long list on this page that requires a scrollbar for navigation. Currently, with my existing HTML code, the list is causing the page to stretch in an undesirable manner. Below is the code snippet for my current page:
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
</head>
<body style="height: 100%; margin:0; background-color: #FFFF00">
<header>
<H1>Header of page with long list of items</H1>
</header>
<section style="position: absolute; top: 80px; bottom: 5px; width:100%; background-color: red">
<div style="background-color: #BBBBBB">
<div style="overflow-y: auto;">
<ol>
<li><h3>Item in the list</h3></li>
<li><h3>Item in the list</h3></li>
(Additional list items...)
</ol>
</div>
</div>
</section>
</body>
</html>