19 Mar Change the Break Point of Nav Bar Menu in Bootstrap 3.3
Mar 19, 2020 – 1 min read
Description
Bootstrap by Twitter is one of the most popular CSS framework for developing responsive and mobile-first websites. I will be talking about the break point of Nav Bar menu in mobile. Naturally, it will break at 768 pixel width but there are cases when we may need to change the break point of the Nav Bar using. This is maybe due to too many elements in the main menu.
Solution
Don’t hack bootstrap.min.css or bootstrap.css. This may cause issues now and also in the future if you decide to upgrade to a newer version of Bootstrap. The best approach is to use your own stylesheet. Use the code below.
You can change the value 1250 to the desired breakpoint.
Make sure your CSS is loaded after Bootstrap, this will overlap bootstrap.css.
If you need assistance with Bootstrap, contact me.