Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
Bootstrap hamburger menu when menu contains too many menu items

Bootstrap has this feature of collapsing menu items in the navbar to a hamburger menu when certain window size breakpoints are reached. However, I sometimes find that even on bigger size screens that wouldn't trigger this responsive hamburger button behaviour (because they are well beyond the breakpoint), the hamburger button should appear when the navbar gets too full (i.e. when there are too many menu items).

Is there a way to accomplish this, preferably built-in, or with css/html only or minimal JS effort? Has anyone tried this before and can share code and experiences?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So I am somewhat shooting in the dark on this answer but I think I understand. The Bootstrap Docs provide examples and the Navbar example is a good resource to see the flexibility and responsive classes that are available.

  • Bootstrap 4.6 Navbar Example
  • Bootstrap 5.0 Navbar Example

Aside from the .navbar-expand-lg classes, Bootstrap doesn't have the native functionality to know when to collapse or not.

Maybe these JavaScript solutions that I have may inspire.

  • Carousel style horizontal navbar
  • jQuery Custom scrollbar plugin: Demo
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!