Hello readers, Today in this blog you'll learn how to create a Sidebar Menu using HTML and CSS only. Previously I have shared a Responsive Navigation Menu Bar using HTML & CSS only, 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 that is based on 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. This process is only done by HTML <input type="checkbox"> tag and <label> tag.
If you're feeling difficult to understand what I am saying. You can watch a full video tutorial on this program (Side Navigation Menu Bar).
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. This process is only done by HTML <input type="checkbox"> tag and <label> tag.
If you're feeling difficult to understand what I am saying. You can watch a full video tutorial on this program (Side Navigation Menu Bar).
Video Tutorial of Sidebar Menu using HTML and 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.
If you like this Login Form Design and want to get source codes. You can easily get the source codes of this program. To get the source codes you just need to scroll down.
If you like this Login Form Design and want to get source codes. You can easily get the source codes of this program. To get the source codes you just need to scroll down.
You might like this:
Side Navbar using HTML & CSS [Source Codes]
Before sharing the source codes of this program (Side Navigation Menu Bar). Let's a few talks 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 a 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 Fontawesome 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 the 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. Click here to download source code files.
As you can see in the video, this program is a 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 Fontawesome 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 the 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. Click here to download source code files.
HTML FILE:
CSS FILE:

which text editor do you use in this video....
ReplyDeleteAtom
DeleteYou are doing very well...keep it up.
ReplyDeleteThank you.keep visiting.
DeleteCan u pls use ur voice for better understanding bcoz there is no more videos in nepali language so pls
ReplyDeleteNepali ma views nai auunw..tesaile video banunw sakkinw.
Deleteplz make videos some slow motion. for better understanding !
ReplyDeleteok bro.. Keep visiting
Deletevery good
ReplyDeleteThanks...Keep visiting.
Deletetnx bro
ReplyDeleteWelcome bro...Keep visiting.
DeleteHow can I keep menu showing all the time rather than clicking on three lines? I don't want to hide the menu. Thanks
ReplyDeleteRemove this line left: -250px from .sidebar...Contact me on Instagram for further help.
Deletehow can your make a commenting input using css codes?
ReplyDeleteYou need JavaScript also. Contact me on Instagram for further information.
Deletehi, rather thank a link when you click a button how would i open an iframe with content inside then click again to vanish or click another link to display content for that link in the iframe.
ReplyDeleteuse JavaScript for that!
DeleteIssue I am facing if a image is coming then the sidebar is overlapping with the image. How to revolve it?
ReplyDeleteuse this
Delete.sidebar{
z-index: 999;
}
i make everything as shown in video but this not working what to do
ReplyDeleteDownload code files from the above link
DeleteHi,
ReplyDeleteThanks for sharing your codes!
How do I have to change the code for a sidebar on the left side?
It's already on the left side
DeleteHi,
ReplyDeleteThanks for sharing your codes!
How do I have to change the code for a sidebar on the right side?
Just change the left property of .sidebar to right
DeleteHow do i make sidebar overlap main page
ReplyDeleteJust use z-index CSS property to overlap an element of other elements
DeletePost a Comment
We welcome relevant and respectful comments. Off-topic or spam comments may be removed.