Bootstrap 5 mega menus are wide multi-column dropdown panels. This page covers 4 mega menu patterns — basic multi-column, icons, hover trigger and centered brand layout — each with working copy-paste HTML.
Quick Setup
Mega menus require Bootstrap 5 JS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Key Classes Reference
| Class | What It Does |
|---|---|
.position-relative | Required on navbar for full-width mega menu |
.position-static | Required on nav-item to break out of its bounds |
.w-100 | Makes dropdown span full navbar width |
.dropdown-menu | The mega menu panel |
left: 0; right: 0 | Ensures full width positioning |
.row.g-3 | Multi-column layout inside mega menu |
1. Bootstrap 5 Basic Mega Menu
A full-width multi-column dropdown mega menu. Uses position-static on nav-item and w-100 on dropdown-menu.
2. Bootstrap 5 Mega Menu with Icons
Mega menu with Bootstrap Icons for each category. Visual navigation for large sites.
3. Bootstrap 5 Hover Mega Menu
Mega menu that opens on hover instead of click. Uses CSS hover with a slight delay.
4. Bootstrap 5 Centered Brand Mega Menu
Mega menu with centered brand logo and navigation links split evenly on both sides.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.