0
differnce between paddling and margin briefly?
I want to know that exact difference betwen paddling and margin? short and exact answer would be appreciated.
4 odpowiedzi
+ 12
Padding is the space between content of a box from it's border.
Like label of a button from it's border.
While, margin is the space between a element from it's surrounding.
eg.
space between the body of page and a button.
+ 2
padding is inside the border, margin outside
+ 1
For example you have a box
Padding -is space between the content( main information) and the end of the box.
Margins -is the space outside the box.
when making a website, you can use margins and padding in this order: margin-top, margin-right,margin-bottom and margin-left.
padding-top, padding-right,padding-bottom and padding-left.
Hope this helps
if you want more information, here is a link that could help
https://www.w3schools.com/css/css_boxmodel.asp