Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navbar-fixed-top wraps navbar-nav prematurely onto multiple lines #9566

Closed
gtwilliams03 opened this issue Aug 14, 2013 · 6 comments
Closed
Labels

Comments

@gtwilliams03
Copy link

Been looking at this (and I apologize if this issue was already addressed) - and took this site I'm working on (mcgarrybair.com) right out of the BS3 RC2 examples. Resizing the window from -lg to -md wraps the nav-bar into multiple lines. You can see this on the law firm site I just published at http://mcgarrybair.com - this causes the site to render unaccaptably in an iPad (tablet view). I think the navbar should not wrap - but go immediately from one-line of menus to collapse? Wrapping the navbar that is a navbar-fixed-top into multiple lines of li items causes it to overlap the content of the site.

landscape

ipad-tablet

@cvrebert
Copy link
Collaborator

Your options are basically:

  1. Have fewer/narrower navbar items so that it'll never wrap.
  2. Add .hidden-md (or similar) to certain navbar items so that the navbar as a whole won't be wide enough to wrap at medium screens.
  3. Adjust the navbar's media queries so that it starts collapsing at medium screens

There's no right answer for all situations, and it comes down to the fact that, since Bootstrap is generic, we don't know how many / how wide navbar items you'll have.

@gtwilliams03
Copy link
Author

Got it - feel free to delete this issue since it isn't a bug or feature request and I didn't mean to clog space with what turns out to be a site-specific issue. Great job with Bootstrap!

@cvrebert
Copy link
Collaborator

(1) Can't delete GitHub issues (2) It's an instance of a fairly general problem. I've had to deal with it myself in my main Bootstrap v2 webapp.

@gtwilliams03
Copy link
Author

Then thank you for understanding and for your helpful advice. Hopefully it helps others as well who might be similarly situated with long navbars.

@Dhamu28
Copy link

Dhamu28 commented Jul 7, 2014

i want to use two navebars both are fixed on top. when i used this one them hidden in background. can u help me?

@cvrebert
Copy link
Collaborator

cvrebert commented Jul 7, 2014

Please try StackOverflow for those sorts of questions, and especially please don't use comments on old, closed, only-tangentially-related issues to pose such questions. Thanks.

@twbs twbs locked and limited conversation to collaborators Jul 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants