Reputation: 29
I have been playing around with Bootstrap Framework, and have faced a weird problem.
I have tried serveral methods, but none of them work, changing max-width to 1200px; and centering the nav bar didn't do the trick.
And after serveral hours of trying to play around with the elements, I have came to the solution I must search for help else where.
I hope someone can give me a solution, to make the menu, not extend more than the container that is wrapped around it :)
Upvotes: 1
Views: 77
Reputation: 43564
To solve your problem with the same function, replace the following lines
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top affix-top">
<div class="container-fluid">
with these lines
<nav id="mainNav" class="navbar navbar-default navbar-static-top affix-top">
<div class="container">
Upvotes: 2