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

Matt Jones
Matt Jones
1,950 Points

Nav bar looks different to that on the video.

Instead of the NAV bar being inside a block that stretches the length of the browser, each nav is contained within its own separate box, I'm not entirely sure where I've gone wrong.

evannex
evannex
2,436 Points

Can you add your code here so we can see what the problem is? It's hard to help with nothing to go on.

Matt Jones:

What did you do with your nav ul & nav li in your CSS file? Review the video for this lesson.

The elements are in their own individual content boxes. Padding & margins surround the navbar li elements.

https://www.w3schools.com/css/css_boxmodel.asp