November 2018
Intermediate to advanced
404 pages
10h 16m
English
A navigation bar consists of navigation menu items in a tray, typically at the top of a web page. To use a navigation bar, we wrap a section with .navbar and use parameters such as .navbar-expand{-sm|-md|-lg|xl}, fixed-top, and scrolling-navbar. The navigation bar is attached to the top and is fluid (taking up the maximum allowable width) by default:
<nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar"> <div class="container"> <a class="navbar-brand" href="#"><strong>myJournal</strong></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#myNavbar" aria-controls="myNavbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> ...
Read now
Unlock full access