+ 2

Plz tell me what is padding in css I can't under stand it

14th Aug 2017, 7:40 AM
Asad Ullah Hashmi
Asad Ullah Hashmi - avatar
2 Answers
+ 4
I like to see padding as 'inner margins' as it makes the element bigger... On the other side, margin doesn't make the element bigger. Try using background-color to visualize how padding works! 😊
14th Aug 2017, 8:51 AM
Drax
Drax - avatar
0
Space from content until border
9th Apr 2018, 3:49 AM
Mirlan Zulumbekov
Mirlan Zulumbekov - avatar