.div1 {
width: 200px;
height: 100px;
padding: 25px;
border: 10px solid blue;
box-sizing: border-box;
}
<div>
<div class="div1">
</div>
</div>
This is what i got in the browser
can someone explain why the border is 9.998px instead of 10px? Also when i added up all the border and padding, it was not exactly to 200px. Does this have anything do with the browser's default styles?