CSS Tutorial
Menu
CSS Advanced
Menu
CSS Responsive
Menu
CSS Grid
Menu
CSS Navigation Bar
Using CSS can transform HTML menus into great-looking navigation bars.
Navigation Bar = List of Links
A navigation bar requires standard HTML as a base.
In the examples, the navigation bar is built from a standard HTML list.
A navigation bar is a list of links, therefore the <ul> and <li> elements is used:
HTML
Output

CSS
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
Output

Example explained
- list-style-type: none; the bullets are removed. A navigation bar does not require list markers.
- Set margin: 0; and padding: 0; browser default settings are removed.