Two input types have their own default style (margin, padding, etc.). To include them in the width calculation to normalize the set width, use box-sizing:border-box;
Change your CSS to:
input { width: 200px; box-sizing:border-box; }
More on box-sizing from MDN
The CSS property for determining the size of the box is used to change the default CSS model. It is used to calculate the width and height of elements.
source share