CSS Navigation Bars
CSS can be used to create navigation bars.
CSS Navigation Bars
A navigation bar is basically a list of links.
Example 1: Vertical Navigation Bar
To build a vertical navigation bar, you can style the <a> elements inside a list.
Example 2: Horizontal Navigation Bar
There are two ways to create a horizontal navigation bar. Using inline or floating list items.
Example 3: Fixed Navigation Bar
To create a fixed navigation bar (stays at the top or bottom of the page), use position: fixed.