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) Building Forms with Bootstrap Custom CSS

Ishaan Singh
Ishaan Singh
4,639 Points

Navbar-brand and menu toggle button collapsing on top of each other

In sm and xs widths, the navbar-brand text and menu toggle button are collapsing on top of each other (ie, overlapping). Anyone know how to fix this? I'm using alpha.6.

Code below:

<nav class="navbar navbar-toggleable-sm navbar-inverse bg-primary fixed-top">
      <div class='container' id='nav'>
        <button class="navbar-toggler navbar-toggler-right" 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>
            <a class="navbar-brand" href="#home" >Home</a>
            <div class="collapse navbar-collapse" id="navbarNav">
              <ul class="navbar-nav"> 
                <li class="nav-item">
                  <a class="nav-link" href="#about">About <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="#speakers">Speakers</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="#schedule">Schedule</a>
                </li>
              </ul>
              <a class="navbar-brand ml-auto" href='http://www.teamtreehouse.com'>Presented by Treehouse</a>
            </div>
      </div>
    </nav>
Stephen Ambler
Stephen Ambler
8,236 Points

are you able to show code?