pure css dropdown menu

Want to create a dropdown menu with only HTML & CSS? Solution: Pure CSS Dropdown Menu With Submenu,Simple HTML CSS Menu with Multi Submenu.

I am sure that you know what is a dropdown menu, A dropdown menu is a list of links or items that appear whenever the button is clicked or hovered on. Every website use dropdown menu, this the best way to organize listing by category.

Today you will learn to create a drop-down menu using only HTML & CSS. This post is very useful if you are learning HTML CSS, I mean if you are a beginner in web design or development. You can use this on your next or current program after some modification. I am sure you will definitely able to create a pure CSS menu after seeing this post.

So, Today I am sharing Pure CSS Dropdown Menu With Submenu, A simple HTML CSS Menu with Drop-Down feature. This has also submenus, you can place more just copy and paste the same format I have created the present submenus. Previously I have shared the same type of Dropdown menu in the earlier day you can check out that here.

If you are thinking now how this HTML CSS Dropdown Menu actually is, then see the preview given below.

Preview Of HTML Drop-Down Menu

See this video preview to getting an idea of how this dropdown menubar looks like.

Now you can see this visually. If you like this then get the source code of its.

You May Also Like:

Pure CSS Dropdown Menu With Submenu Source Code

As always before sharing source code, let’s talk about it. As you can see in preview this is a simple dropdown menu with pure CSS, if you want a responsive one then check out this Responsive Navbar. I have created HTML list with <ul> and <li> for creating this menu, I have multi-time used these tags to create submenus.

For creating the icons which are after every dropdown list, I have used CSS Unicode icons (see list). In this menu, all works are done by CSS :hover property. First I place all list in their position using postion: property. At first, I just hide all the submenus and dropdown listing, they all will visible on the mouse hover.

There is nothing to explain all are these very easy to understand, you will understand easily after getting the codes. For creating this drop-down menu you have to create only 2 files, One for HTML, & one for CSS. Follow these steps to creating this without any error.

index.html

Create an HTML file named ‘index.html’ and put these codes given here below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes.

That’s It. Now you have successfully created a Pure CSS Dropdown Menu With Submenu. In other words, Simple HTML CSS Menu with Drop Down Listing. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

6 COMMENTS

  1. Hei hei Shaan,
    I’m in a group of what we call savers group. We save money and loan ourselves at the rate of 10%. We currently use books but I’ve been thinking going digital. There’s something I’ve created for myself but I’m thinking of including the whole group would benefit. Problem is, when I click a different members name it’s not giving a members details other than the names, ID# and phone #. What should I do. Program is in excel

  2. Hi

    Thanks for this code! it is helping with dealing with IE 11 not liking submenus. My only concern is, how to make it responsive?
    I am using it in wordpress and would like it to reduce to the 3bars on say a phone.. any idea?

    Thanks

  3. Super elegant, I added a fade-in, also only css for a nice feel. Like this:
    nav ul ul{
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.2s;
    display: none;
    position: absolute;
    border-top: 1px solid #aaa;
    top: 35px;
    }

LEAVE A REPLY

Please enter your comment!
Please enter your name here