With box-sizing: border-box

Both divs are the same size now!

Hooray!

Both divs appear the same size because box-sizing: border-box includes padding and border in the total width and height.