Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

Problem with the concept of padding

I just couldn't understand what's padding. I just know its basic meaning. How would i come to know that 5% padding is to be applied. Please help me with this one. Thank you!

2 Answers

jag
jag
18,266 Points

Here is a box model to illustrate what padding is: http://www.w3schools.com/css/css_boxmodel.asp

Using a browsers inspector tool you can see what styles are being applied.

Does that help?

thank you :) I think the only way to enter their correct values is by using hit and trial method only, no other way.

It also helps to set padding values for top, right, bottom, left then remove these one by one to see the effect on your webpage:)