Back to main Free Hosting Bootstrap Builder Free UI Kit
Navbar dropdown onhover vector illustration

Bootstrap 5 navbar mega menu dropdown code

View demo Download

Get 700+ Material components for the latest Bootstrap 5 for free. This component is also available as ready-to-use solution in MDB UI Kit. Learn more about Bootstrap Dropdown here, or download MDB Free version with 700+ components here.

In this code example we will show how to create Bootstrap 5 mega menu dropdown with full view inside container. Let's start,

Steps to create megamenu
  • Use the default Bootstrap's dropdown menu for your mega menu.
  • Set the .dropdown position to static by overiding its CSS
  • Add .has-megamenu on li element ( together with dropdown class name )
  • Then add new class name .megamenu together with dropdown-menu classname.
  • Fill content of megamenu with Bootstrap grid's columns.
Basic code snippets

Back to all examples

Creating an e-commerce project?