I have designed an HTML list that looks great. However, the issue arises when the list becomes too long - it exceeds the height of the page and there is no scrollbar to navigate through the rest of the list. To address this problem, I need to make the list scrollable along the y-axis. Below you will find the HTML and CSS code for reference:
HTML
<section class="demo">
<dl class="list maki">
<dt>Errors</dt>
<dd><a href="#"> Name1 </a></dd>
<dd><a href="#"> Name2 </a></dd>
<dd><a href="#"> Name3 </a></dd>
<dd><a href="#"> Name4 </a></dd>
<dd><a href="#"> Name5 </a></dd>
<dd><a href="#"> Name6 </a></dd>
</dl>
</section>
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body:before {
position: absolute;
content: '';
opacity: 0.8;
height: 100%;
width: 100%;
left: 0;
top: 0;
}
...