Several ways to avoid Math calculations CODE
.main-inner div
1. Subtract padding & border from width https://youtu.be/qhiQGPtD1PQ?t=137 2. Add inner div with padding https://youtu.be/_Ai-_nZ6bw4?t=269 3. Use
box-sizing: border-box
property https://codepen.io/Tandilashvili/pen/yLeJvLO
by Valeri Tandilashvili
4 years ago
CSS
Learn CSS
1
Pro tip: use ```triple backticks around text``` to write in code fences