0

I can't understand the magin and the padding

the most important things in css

2nd Mar 2017, 10:34 PM
Hamidou
Hamidou - avatar
3 Réponses
+ 4
Margin specifies the empty space around an element and padding specifies empty space within in an element.
3rd Mar 2017, 2:28 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 1
Margins happen outside the box, padding happens within the box. Remember divs are boxes...
2nd Mar 2017, 11:42 PM
Jason Lewis
Jason Lewis - avatar