What are the difference between margin & padding?

Margin is a outer space of an element but padding is the inner space of an element. In other words we can say margin is the space outside of an element's border but padding is the space inside of its border.

Suggest An Answer

No suggestions avaliable!

Latest post from CSS interview questions

Ask Question