box-sizing: border-box;

Compare