DEV Community

Discussion on: Seemingly Subtle Differences: Padding vs. Margin

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

"Padding is within the content element." That could be somewhat misleading. Padding is outside the content area of the box generated by the element. It would probably be helpful not to use the term "content" to describe the element as neither HTML nor CSS uses "content" the way you are using it here. "Padding is within the borders of the element" would be better.

Collapse
 
maxjacobzander profile image
Max Zander • Edited

Thank you for the feedback, Nicholas. I certainly did not want to be misleading and have updated the TL;DR to clarify that a bit for people!