Helo guys, I want to modify the navbar in order to collapse on @screen-md :992px;
.
I have modified navbar.less
, but still not working and I don't know what to do.
So how can I modify the @grid-float-breakpoint
variable in order to have that menu collapsed on custom media query size?
In
variables.less
changeto
or to whatever other width you would like.
It's easy and painless done this way.
If you are using Twitter Bootstrap, the responsive collapse is already built in. You may just have to invoke it with a class in your menu. But this is the css I use in most of the Bootstrap applications I've worked with, including the one I working in right now
change the min width to the width you want it to collapse from.
You can change the collapse point in 3.1 like this..
http://www.bootply.com/120951
In Bootstrap 4, changing the breakpoint is easier. See this answer
Here is the code I used to solve this, just add it to your style sheet.