In reply to freakqnc.

I think you can change the box model from the troublesome content-box to border-box (box-sizing: border-box;) in CSS which would not change the width/height when adding padding/margins; I mentioned it in Liesbeth's comment above