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 hamburger menu

Hi all,

I'm trying to build a menu in Bootstrap that has only the "hamburger" icon and nothing else on the navbar. So ti would be same on all browser sizes.

Hope my question makes sense.

Thank you!

1 Answer

Hi tuuka,

For Bootstrap place your anchor link to your logo inside of a div class of navbar-brand.

Here is the example from the getbootstrap site.

<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">
        <img alt="Brand" src="...">
      </a>
    </div>
  </div>
</nav>