As I was creating a website, I designed an exception holder on the side to capture every error thrown.
To prevent the webpage from expanding endlessly in case of multiple errors, I am working on making it scroll instead.
My approach involves using CSS and adjusting the #error
element with the property overflow:auto
.
Check out the website here!
#error {
color:red;
display:table;
border:1px solid black;
border-color:black;
height:750px;
width:10em;
overflow:auto;
white-space:nowrap;
}
#important{
vertical-align:top;
border-collapse:separate;
}
<table>
<tr>
<td id='error'>
<div>
<center>Errors:</center>
</div>
</td>
<td id='important'>
Everything listed here is crucial. Please be patient as we load.
</td>
</tr>
</table>