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 Polish the Navigation and Footer

Nathan Parker
Nathan Parker
2,432 Points

How do I expand the top and bottom of my nav's list items like in the video?

The dark green background behind my nav's list items seems to be squeezed right up to the top and bottom of the text for "Portfolio", "About", and "Contact". I'm not sure where I went wrong.

Any help appreciated.

Thanks in advance,

Nate

2 Answers

Nathan Parker
Nathan Parker
2,432 Points

Hey Josh! Thanks for your reply.

I figured it out. My selector "nav ul" was set to "0" when it should have been set to "20px".

Cheers,

Nate

Josh Thackeray
Josh Thackeray
9,895 Points

Have you tried adding padding to the header? Or was a height specified in the video for the header?