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 trialMohammed Asif Anwar
5,380 PointsFinally, add the data attribute that toggles the nav once the menu icon is clicked.
cant figurout. this is what i did.
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand text-muted" href="#">Ribbit</a>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About Ribbit</a></li>
<li><a href="#">Treehouse</a></li>
</ul>
</div>
</div>
</div>
2 Answers
Dale Hudson
20,578 PointsAdd a period before navbar-collapse.
data-target=".navbar-collapse"
Kevin Murphy
24,380 PointsHi Mohammad, there is a quirk in the syntax for the way the class is defined for data-target. Take another look at 9:03 of the video and look closely at how that attribute is defined. I'm sure you'll see it, but circle back if still having trouble.