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
Anton Bozhkov
5,730 PointsNav bar dropdown menu with bootstrap doesn't work
Hello, I had this running but made changes and it does not work now and it is probably a typing error but I checked several times and could not find what the problem is. So here is the code
<header>
<div class="navbar navbar-default navbar-static-top" role="navigation" id="menu-1">
<div class="navbarheader">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand pull-left" href="index.html">
<img alt="Logo" src="img/logoedit3.png" class="img-responsive" id="logo">
</a>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Services<b class="carret"></b></a>
<ul class="dropdown-menu">
<li><a href="construction.html">Construction</a></li>
<li><a href="demolition.html">Demolition</a></li>
</ul>
</li>
<li><a href="safety.html">Safety</a></li>
<li><a href="employers.html">Employers</a></li>
<li><a href="employees.html">Employees</a></li>
<li><a href="contact.html">Contact us</a></li>
</ul>
</div>
</div>
</div>
</header>
3 Answers
Jennifer Nordell
Treehouse TeacherThis piece is odd:
<b class="carret"></b>
There is no b element that I'm aware of and can't find any documentation on a b element.
The b I know of is a tag that makes something bold.
Anton Bozhkov
5,730 PointsYes, I only use it so I can put that symbol in, I could do it with many other tags like <i> , but that part is working fine, however the services dropdown menu does not drop when it is clicked
Jennifer Nordell
Treehouse TeacherTry removing the b altogether and then assigning the "caret" class to your anchor tag. See if you see a difference.
Anton Bozhkov
5,730 PointsAnton Bozhkov
5,730 Pointscaret is with one r i changed that, the symbol works but the dropdown menu still won't