Click the border-box button to fix the layout with the power of Box Sizing!

Parent div with 50% width.

Child div with 90% width, 4px black border, and 20% padding

Child div with 50% width, 4px black border, and 1em padding

Child div with 50% width, 4px black border, and 1em padding