What is the different between padding and margin?

Question & AnswersCategory: CSSWhat is the different between padding and margin?
Kadhiravan asked 8 months ago

Margin: It will give space outside of the boundary Padding: It will give space inside of the boundary

Please follow and like us:
1 Answers
Ranjith Staff answered 8 months ago

It is great to know about the different between margin and padding . They have some differences: Margin is outer space of an element, while Padding is inner space of an element. Margin is the space outside the border of an element, while Padding is the space that is inside the border of it

 

Please follow and like us:

Please login and answer : Click here