I created a Dashboard, but I'm having trouble making my mailPage scrollable.
If you have some time to spare, could you please take a look at my website and help me with this issue?
Here is my code:
window.addEventListener("load", function () {
var deleteSVG = '<svg class="deleteSVG" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.2871 5.24297C20.6761 5.24297 21 5.56596 21 5.97696V6.35696C21 6.75795 20.6761 7.09095 20.2871 7.09095H3.71385C3.32386 7.09095 3 6.75795 3 6.35696V5.97696C3 5.56596 3.32386 5.24297 3.71385 5.24297H6.62957C7.22185 5.24297 7.7373 4.82197 7.87054 ...
});
html{
overflow: hidden;
}
.mailTableBody{
display: inline-block;
padding: 2% 2% 2% 2%;
overflow-y: auto;
width: 50%;
height: 67%;
}
.mail {
width: 50%;
height: 80%;
background: green;
border: 1px solid black;
border-radius: 10px;
box-shadow: 0 0 1px 1px black;
margin-top: 2%;
position: relative;
margin-bottom: 30%;
}
.deleteSVG{
height: 20%;
}
<div class="page mailPage" id="mailPage">
<table class="mailTable">
<tbody class="mailTableBody" id="mailTableBody">
</tbody>
</table>
</div>
Your assistance would be greatly appreciated.