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