34.1 C
Sunday, June 26, 2022

How to Make Side Navigation Menu Bar in HTML & CSS

How to Make Side Navigation Menu Bar in HTML & CSS
How to Make Side Navigation Menu Bar in HTML & CSS

Hello friends, Today in this blog you’ll learn how to create a Sidebar Menu using only HTML & CSS. Now it’s time to create a Side Navigation Menu Bar that slides from the left or right side.

As you can see in the image, this is a Side Navigation Menu Bar which is based in only HTML and CSS. The <input> checkbox tag is used to show and hide the sidebar. That means when you click on that ‘X’ button the sidebar will be slide on the left side and the only menu button is shown (3 lines bar) and again when you click on that 3 lines bar the Sidebar will be slide-right side.

When you click on that three-line bars, the checkbox will be checked and the Side Menu Bar is shown and when you again click on that bars, the checkbox will be unchecked and that shown menu bar will be hidden. 

Video Tutorial of Sidebar Menu using HTML & CSS

I hope you’ve understood the basic concept of this Sidebar Menu after watching this video tutorial. I think this video can help beginners to know CSS in depth. You can use this program or design on your website or project after a few changes according you want. Also, you can redesign this program to take this sidebar menu to the next level.
Before sharing the source codes of this program (Side Navigation Menu Bar). Let’s a few talk about the main tags and codes of this program. To create this Side Navigation Menu Bar I had used HTML & CSS only which means this is a pure CSS program.

As you can see in the video, this program is fully <ul> and <li> based program, that’s why we can create a menu easily. You can call this CSS Side Navigation Bar without the use of Javascript. I’ve used <input type=”checkbox”> and <label for=””> tag to toggle Menu Bar for the mobile version. I also used the Font-awesome icon to show a 3-lines bar and the “X” button. Generally, font-awesome is a website where we can get thousands of free icons for our projects.

To create this program (Side Navigation Menu Bar). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste these following codes in your file. You can also download the source code files through the given link. In the source files, there you also get a background image of this program.



I hope this helps you. Thank you for visiting and follow our Facebook and Twitter page to keep updated.



Please enter your comment!
Please enter your name here

Stay Connected