65.2k views
0 votes
In the context of the box model, what is the difference between a margin and padding

2 Answers

2 votes

Answer:

It is good to know about the differences between margin and padding .Margin is the outer space of an element, while padding is the inner space of an element. In other words, margin is the space outside of an element's border, while padding is the space inside of its border. You can set auto value to margin.

User Myaseedk
by
5.5k points
3 votes

Answer:

b. A padding lies inside a box border, while a margin lies outside it.

Step-by-step explanation:

plato

User Lobzik
by
4.7k points