+ 1

What is the difference between padding and margin

27th Nov 2017, 5:16 AM
Rahul
Rahul - avatar
4 Antworten
+ 2
Padding is the space between the content and the border, and margin is the space between the border and the rest of the page and surrounding elements.
27th Nov 2017, 5:50 AM
Marcus Germano
+ 2
From outside to inside: Margin > Border > Padding > Content
27th Nov 2017, 6:07 AM
Marcus Germano
0
ok
27th Nov 2017, 5:51 AM
Rahul
Rahul - avatar
0
. .. . .(border) ............................... | | (Margin) | (Padding) Content | | | ...............................
27th Nov 2017, 6:05 AM
jamilxt
jamilxt - avatar