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

CSS Framework Basics Prototyping with Foundation Building a Top Bar Navigation

Brandon Spell
Brandon Spell
8,603 Points

Building a Top Bar Navigation - Foundation

If the nav class="top bar" creates the black bar spanning the width of the page, then how is that possible when it's inside a div that is stuck to Foundation's grid?

<div class="contain-to-grid">
            <nav class="top-bar">

It doesn't make sense that something INSIDE a div that is contained to a grid is able to span the width of the page.

Some clarity would be great! :)

2 Answers

Kevin Korte
Kevin Korte
28,148 Points

According to their docs that's not how it's suppose to work. Do you have a codepen or something of the issue?

Brandon Spell
Brandon Spell
8,603 Points

It's more or less how Guil is showing the code as written. The nav class is underneath the div class, which is why I'm confused. The code above is how the nav begins in his video example.