How to remember margin/border/padding in css
·May 5, 2022·
1 min read
Remembering which is which for margin/border/padding in the css box model is tricky when you start learning css. Here is my tip worth 2 cents.
From outside to inside, it is margin -> border -> padding.
Again, Margin, Border, Padding, in order. M.B.P., which by accident happens to be the same acronym for MacBook Pro.