Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda