![]() |
VOOZH | about |
After reading this article, you will be able to build your own vertical navigation bar. To follow this article you only need some basic understanding of HTML and CSS.
Let us start writing our vertical navigation bar, first, we will write the structure of the navigation bar. In this tutorial, we create the navigation bar using an HTML list item. We use font-awesome 5 icons in the navigation bar. For this, after the "title" tag we have added the "script" tag to include the font-awesome library.
We have defined the structure of the web page using HTML. Now we need to add some style using CSS properties. First, remove the bullets and the margins and padding from the list. Now give background color and a specific width.
In order to create a vertical navigation bar, you have to style the <a> elements inside the list.
Final code: The following is the combination of all of the above code snippets.
Output:
👁 Image