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 Create a Horizontal List of Links

Michael Lorenzana
Michael Lorenzana
12,029 Points

i have padding top and bottom nav li set to 15px and it is still not working.

I have the values set properly but still not letting me continue. Please help

I think selector is not correct .

4 Answers

Michael Lorenzana
Michael Lorenzana
12,029 Points

Yes it was the wrong selector the whole time. Thank you

Michael Lorenzana
Michael Lorenzana
12,029 Points

nav li { padding: 15px 10px; } saying top and bottom need to be set to 15px, but have it set already.

Hello Michael Lorenzana, nav li { padding:15px; /* it means top:15px, right:15px, bottom:15px, and left:15px */ } If you want to top and bottom then should write. padding: 15px 0 15px 0;

Michael Lorenzana
Michael Lorenzana
12,029 Points

Thank you for your reply. Although I do think it is the selector, because the values for top and bottom and left and right can be called with padding: 15px 10px;. It says make top and bottom 15 px and left and right 10 px. I think it is the selector, but it is telling me to call the list in the nav element. I'll double check it may be nav a instead of nav li.