Course lesson

Build a Responsive Navbar in Bootstrap

Every website needs a navbar which is what we'll build in this lesson. Bootstrap gives us a good number of navbar specific classes like navbar-nav and navbar-collapse. We'll also learn about targeting specific elements to collapse into a hamburger menu...

Duration
5 min
Access
Included
Transcript
Retained from source evidence

Every website needs a navbar which is what we'll build in this lesson. Bootstrap gives us a good number of navbar specific classes like navbar-nav and navbar-collapse. We'll also learn about targeting specific elements to collapse into a hamburger menu linking the ID of the elements to the collapse icon data-bs-target="#navbarItems".

We'll unpack what these classes do (and more) as we build out our navbar.