DEV Community

Discussion on: Your favorite analogies to explain IT concepts. Let's discuss!

Collapse
 
maestromac profile image
Mac Siri • Edited

Oh, another one. This one helps me understand the difference between margin and padding.

Padding is similar to wearing a thick coat; It's technically part of you and changes your width/height because it will affect how up close and personal you can be when you are giving a hug.
Margin is similar to personal space; It's the extra space surrounding you that you would like to have but it doesn't change your width/height. If you require a personal space radius of 50cm and your friend requires 30cm, it doesn't mean you guys have to be 80cm apart.

Collapse
 
ana profile image
Ana Chiritescu

Hehe, good one. During Swedish winters, margin is extremely high, ie: wearing thick clothes for cold weather!

Collapse
 
maestromac profile image
Mac Siri

Sorry, I made a mistake and confused the two 🤐. updated