Many web pages are based on a grid-view, which means that the page is divided into columns.
First ensure that all HTML elements have the box-sizing property set to border-box. This makes sure that the padding and border are included in the total width and height of the elements.