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 - My mobile toggle button appears in all viewports?

Hey guys! I have been watching tutorials on creating a responsive navbar and one thing I am trying to create is a responsive menu button. I have created the button as you can see here:

http://jsfiddle.net/nickmadd/LvhCh/4/

The issue is that when it opens in the browser it is still there even in a large viewpoint. I need it to appear when it get's towards mobile size.

What am I missing?

1 Answer

I'm not as familiar with bootstrap as I am with foundation, but it looks like you are currently asking your .navbar-toggle to display as a block element, which may be overriding the bootstrap classes (which are probably deciding when to display: none and when not to.

Try commenting out or removing:

.navbar-toggle {
    display: block;
}