I'm a beginner in bootstrap and I try to change the break-point position to make my navbar collapse earlier. (something like 810px instead of the 768px default value).
I searched for the solution through the most of asked questions, but as bootstrap evolves every day, the solutions are deprecated and they don't work anymore.
What I try to do is to modify the variable.less
file in the less
directory of Bootstrap.
I changed the file like that :
//** Point at which the navbar becomes uncollapsed.
@grid-float-breakpoint: 810px;
Then I recompiled the file bootstrap.less
in bootstrap
.css using lessc
with this command line :
lessc bootstrap.less > bootstrap.css
so a new file bootstrap.css have been created in my folder. I simply replaced the default bootstrap.css with the recompiled file bootstrap.css, but nothing change on my website, my navbar always collapse at 768px...
Anyone can help ? Thanks.