You might want to find a CSS style.
box-sizing: border-box;
Usually 100% is calculated for the size of the internal surfaces, which is completely useless if there are any additions or borders in your box. When choosing a window size, it is designed so that the outer border is such. Incredibly useful for making a% size div with zero padding and border correctly.
source share