Answer the question
In order to leave comments, you need to log in
Why is padding used instead of margin when indenting between columns?
There are 3 columns at 33.3% why when you need to indent between columns, they are done using padding? Although it would be more logical with the help of margins. Just not to bother with width calculations? Since box-sizing: border-box; takes into account paddings and borders.
Answer the question
In order to leave comments, you need to log in
you can also use margins - width: calc((100%/3) - 20px)
jsfiddle.net/weq46z76/1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question