+ 1

Whats a padding? What does it do?

11th Sep 2016, 3:30 PM
Arnold Gyan
Arnold Gyan - avatar
2 Answers
+ 5
Padding is the space around content. You might want to add a picture to your webpage but dont want text like directly above or below it. So you use padding to give it more space, this can be done in pixels. For example : img { padding-top: 30px; padding-bottem : 40px; } Now you've created empty space around the img. Hope this helps
11th Sep 2016, 3:47 PM
Dirk Heijnen
Dirk Heijnen - avatar
+ 1
Thanks alot👍, Dirk
11th Sep 2016, 3:56 PM
Arnold Gyan
Arnold Gyan - avatar