My buttons have the following properties:
background: #c6cdf2;
border: 1px solid #8896e4;
border-radius: 3px;
padding: 6px 10px 3px 10px;
When the page resizes, the buttons don't respect the padding and start overlapping each other.
https://i.sstatic.net/WWZ3f.png
https://i.sstatic.net/w1wY7.png
Is there a way to automatically calculate the proper margin between the borders? I prefer not to set a fixed margin to avoid this issue.