html5 css3 responsive menu

How we can create a responsive menu using pure HTML and CSS? Solution: See this HTML5 CSS3 Responsive Menu With Social Icons, Simple Navigation.

Previously I have shared many types of menu, but this is pure HTML 5 and CSS 3 based navigation. Basically, a navigation or menu section is required part of any website or web app. And menu contains important links such as home, about, contact, etc for help to navigate users. There are many types of fancy menu available in this blog, but this concept only with HTML5 and CSS3.

Today you will learn to create simple navigation. Basically there is a page with only a heading and a bar in the top which contains a logo text and hamburger menu icon. When you will click on the menu icon, then a full-page menu section will visible. The menu contains links like home, about, blog, etc and social media icons. There is an underline effect you will see when you will hover on any menu item.

So, Today I am sharing HTML5 CSS3 Responsive Menu With Social Icons. There I have used the latest version of pure HTML and CSS which known as HTML 5 and CSS 3 to create this program. There I have used a third-party icon library to place the icons of the social networks. If you are a beginner then this program will help you to understand how to create a menu.

If you are thinking now how this responsive menu actually is, then see the preview given below.

Preview Of Simple Navigation

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

Live Demo

Now you can see this program 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:

HTML5 CSS3 Responsive Menu Source Code

Before sharing source code, let’s talk about it. First I have created a nav section using HTML <nav> tag and the main section for heading. Inside the nav section, I have created a main div named container and input, label, and list inside it. The hamburger menu icon and social icons are based on font-awesome library. Also in the HTML file, I have linked the CSS file.

Now using CSS I have placed all the items in the right place, as you can see in the preview. There I have used input:checked method to open and close the menu. There I gave hover values like underline on menu items. I have used CSS transform command to transform the menu and cross icon on click. Left all other things you will understand after getting the codes, I can’t explain all in writing.

For creating this program you have to create only 2 files, one file for HTML and one file for CSS. Follow the steps to creating this program without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given 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 HTML5 CSS3 Responsive Menu With Social Icons, Simple Navigation. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

1 COMMENT

  1. Hi Shaan,

    Could you please tell me that how can I identify my menu bar is resposive or not in my website. Google search console says that your website is not mobile friendly.

LEAVE A REPLY

Please enter your comment!
Please enter your name here