I'm using codepen to play some CSS practice and encounter an error.
<style>
* {
box-sizing: border-box;
margin: 0;
}
.container {
width: 300px;
background-color: pink;
margin: 0 auto;
}
.one, .two {
width: 100px;
height: 100px;
margin: 10px;
background-color: black;
border: none;
display: inline-block;
}
</style>
<div class='container'>
<span>
<div class='one'></div>
<div class='two'></div>
</span>
</div>
The width of the span should be 10 + 100 + 10 + 10 + 100 + 10 = 240px . But chrome tool says it's 244.44px