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 Bootstrap 4 Basics (Retired) Using Bootstrap Components Building a Navbar

runa verse
runa verse
409 Points

container tag for the nav (with new developments in bootstrap-4, where are we supposed to put the container tag)?

I tried putting a new div above <ul> <div class="container">, but it messed up the nav.

1 Answer

runa verse
runa verse
409 Points

figured it out!

<nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-primary pb-4"> <div class="container"> <button class="navbar-toggler navbar-toggler-left" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button>

Raffael Dettling
Raffael Dettling
32,998 Points

Nice but use the Markdown cheatsheet to improve the readability :)