This is BOX1.
This is BOX2.

Two 150 pixels boxes inside a 300 pixels container. It should fit nicely, but because of the borders and padding, the two boxes take up more space than 150 pixels each. This "problem" can be solved by setting the box-sizing property to "border-box".

Click the "Try it" button to set the box-sizing property of the two boxes to "border-box":