css flat navigation bar

How we can create a flat and stylish navigation bar using HTML and CSS? Solution: CSS Flat Navigation Bar With Colorful Sub Menu, HTML CSS Flat Navbar.

Previously I have shared many types of Navbar, but it is a little different because it has a colorful UI. According to experts, Having easy-to-use navigation is important for any web site. Basically, Navigation bar contains very useful links of the website to help users.

Today you will learn to create Flat and Colorful Navbar. There is a flat and simple navigation bar, when you will hover then you will see the submenus with a colorful theme background. There is a color combination of dark yellow and light red that is used on the design. Note that, This is not a responsive navbar, this just a design concept.

So, Today I am sharing CSS Flat Navigation Bar With Colorful Sub Menu. Basically, there is a hover effect with a great color combination theme. That’s an HTML list based menu bar and placed and designed using CSS. This is only a UI design concept, if you seriously need a perfect navbar for your website, then check the link I have linked above this paragraph.

If you are thinking now how this flat navigation bar actually is, then see the preview given below.

Preview Of HTML CSS Flat Colorful Navbar

See this video preview to getting an idea of how this HTML CSS based navigation looks like.

Live Demo

Now you can see this visually, also you can see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

CSS Flat Navigation Bar With Colorful Sub Menu Source Code

Before sharing source code, let’s talk about it. First, I have used HTML <nav> tag, this is the official tag for creating navbar comes with HTML 5(info). As you know this is not a responsive design so, I have put values in pixels. For creating links and dropdown I have used HTML list <ul> <li> tags.

Now using CSS, I have placed all the elements by giving position, padding, margin, display, etc. I have used flex display in this design. After that, I put different colors for elements, like blue for links, and yellow sub-menus, and light red for hover sections. For creating attractive I have used different colors for the border on different sides. Like I have choosed the yellow color for sub-menu and put dark yellow on the border and more dark on the border-right and border-bottom.

Also applied the same border condition in hover effect with red color. These all are very basic stuffs, you will understand easily after getting the codes. For creating this design you have to create only 2 files, one for HTML and one for CSS. Follow the 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 given here.

That’s It. Now you have successfully created CSS Flat Navigation Bar With Colorful Sub Menu, HTML CSS Flat Navbar with hover effect. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting. 

6 COMMENTS

    • Its working, and its just a design concept. That why its not responsive, if you want responsive then you can check other post previously I have shared.

  1. Hello Shaan. I am one of your follower.
    I have couple questions to you if you can answer them.
    First: according to nav element why did you use border and border-radius at the same time. And why you use I’ll and li twice like: ‘ul li ul li’.
    The last question is how to remove the dots next to the list element.
    Excuse me I’m a beginner.

LEAVE A REPLY

Please enter your comment!
Please enter your name here