Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 7
What is different between Margin and Padding?
4 Respostas
- 5
No
+ 12
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.
+ 4
think of an html element as a box. so the margin is the space outside the box while padding space is within the box, the difference from the border and the element.
0
Padding is the space between the textnode and the border while the margin is the space between the border of the element and that of the other element element border