Twitter Bootstrap: How to make top fixed navbar stay in container and not stretch?

Posted by Jryl on Stack Overflow See other posts from Stack Overflow or by Jryl
Published on 2013-06-25T21:45:19Z Indexed on 2013/06/25 22:21 UTC
Read the original article Hit count: 114

Filed under:

I'm working with Twitter Bootstrap and the regular navbar you see in the guides: http://twitter.github.io/bootstrap/components.html#navbar

I don't want the navigation to stretch all the way left or right but stay where I can see both sides just like in the guide. The only difference is it would be fixed to the top.

I was wondering, how do I make this become a fixed navbar as if I was using the navbar-fixed-top class?

© Stack Overflow or respective owner

Related posts about twitter-bootstrap