Use box-sizing: border-box on all elements.