There is something very basic about CSS that I seem to be missing. Consider (CodePen):
/* Reset */
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
margin-block-start: 0;
margin-block-end: 0;
}
.parent {
width: 5rem;
height: 3rem;
border: 3px solid green;
}
.child {
width: 5rem;
height: 3rem;
border: 3px solid blue;
}
<div class="parent">
<div class="child"></div>
</div>
Here is the result:
Given that there are no paddings or margins, what is the narrow white space between the two borders?
