How to create a fixed width, fixed position header in Bootstrap
Posted on 2014-12-09
The default fixed-top navbar in Bootstrap spans the full width of the viewport. I want to contain it within a container div. I am able to contain the left side using the following CSS override:
But the navbar still extends full window on the right. Giving a definite width to the navbar does work, but it destroys the menu collapse.
Any help would be greatly appreciated.