use CSS box-sizing: border-box