I'm currently working on styling a div element to have a width of 98%, with left and right margins set at 1%. However, I seem to be facing an issue where the top margin displays as 0.5% instead of the intended 0%. Could you please review my code below and point out any errors:
#container {
border: 1px solid black;
width: 98%;
height: 98%;
margin-top: 0%;
margin-left: 1%;
margin-right: 1%;
}
<div id='container'></div>