{"id":3638,"date":"2022-10-07T22:30:04","date_gmt":"2022-10-07T17:30:04","guid":{"rendered":"https:\/\/www.edopedia.com\/blog\/?p=3638"},"modified":"2022-10-07T22:30:06","modified_gmt":"2022-10-07T17:30:06","slug":"design-responsive-navigation-menu-bar-using-html5-css3","status":"publish","type":"post","link":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/","title":{"rendered":"Design Responsive Navigation Menu Bar using HTML5 &#038; CSS3"},"content":{"rendered":"\n<p>In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive HTML5 menu is given below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML5 &amp; CSS3 Responsive Menu Source Code<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">index.html<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot; dir=&quot;ltr&quot;&gt;\n   &lt;head&gt;\n      &lt;meta charset=&quot;utf-8&quot;&gt;\n      &lt;title&gt;Responsive Navigation Menu&lt;\/title&gt;\n      &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;\n      &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/5.15.3\/css\/all.min.css&quot;\/&gt;\n      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n   &lt;\/head&gt;\n   &lt;body&gt;\n      &lt;nav&gt;\n         &lt;div class=&quot;logo&quot;&gt;\n            Brand\n         &lt;\/div&gt;\n         &lt;input type=&quot;checkbox&quot; id=&quot;click&quot;&gt;\n         &lt;label for=&quot;click&quot; class=&quot;menu-btn&quot;&gt;\n         &lt;i class=&quot;fas fa-bars&quot;&gt;&lt;\/i&gt;\n         &lt;\/label&gt;\n         &lt;ul&gt;\n            &lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;#&quot;&gt;Home&lt;\/a&gt;&lt;\/li&gt;\n            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;\/a&gt;&lt;\/li&gt;\n            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;\/a&gt;&lt;\/li&gt;\n            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;\/a&gt;&lt;\/li&gt;\n            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Feedback&lt;\/a&gt;&lt;\/li&gt;\n         &lt;\/ul&gt;\n      &lt;\/nav&gt;\n      &lt;div class=&quot;content&quot;&gt;\n         &lt;div&gt;\n            Responsive Navigation Menu Bar Design\n         &lt;\/div&gt;\n         &lt;div&gt;\n            using only HTML &amp; CSS\n         &lt;\/div&gt;\n      &lt;\/div&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">style.css<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">@import url('https:\/\/fonts.googleapis.com\/css?family=Poppins:400,500,600,700&amp;display=swap');\n*{\n  margin: 0;\n  padding: 0;\n  box-sizing: border-box;\n  font-family: 'Poppins', sans-serif;\n} \nnav{\n  display: flex;\n  height: 80px;\n  width: 100%;\n  background: #1b1b1b;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0 50px 0 100px;\n  flex-wrap: wrap;\n}\nnav .logo{\n  color: #fff;\n  font-size: 35px;\n  font-weight: 600;\n}\nnav ul{\n  display: flex;\n  flex-wrap: wrap;\n  list-style: none;\n}\nnav ul li{\n  margin: 0 5px;\n}\nnav ul li a{\n  color: #f2f2f2;\n  text-decoration: none;\n  font-size: 18px;\n  font-weight: 500;\n  padding: 8px 15px;\n  border-radius: 5px;\n  letter-spacing: 1px;\n  transition: all 0.3s ease;\n}\nnav ul li a.active,\nnav ul li a:hover{\n  color: #111;\n  background: #fff;\n}\nnav .menu-btn i{\n  color: #fff;\n  font-size: 22px;\n  cursor: pointer;\n  display: none;\n}\ninput[type=&quot;checkbox&quot;]{\n  display: none;\n}\n@media (max-width: 1000px){\n  nav{\n    padding: 0 40px 0 50px;\n  }\n}\n@media (max-width: 920px) {\n  nav .menu-btn i{\n    display: block;\n  }\n  #click:checked ~ .menu-btn i:before{\n    content: &quot;\\f00d&quot;;\n  }\n  nav ul{\n    position: fixed;\n    top: 80px;\n    left: -100%;\n    background: #111;\n    height: 100vh;\n    width: 100%;\n    text-align: center;\n    display: block;\n    transition: all 0.3s ease;\n  }\n  #click:checked ~ ul{\n    left: 0;\n  }\n  nav ul li{\n    width: 100%;\n    margin: 40px 0;\n  }\n  nav ul li a{\n    width: 100%;\n    margin-left: -100%;\n    display: block;\n    font-size: 20px;\n    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n  }\n  #click:checked ~ ul li a{\n    margin-left: 0px;\n  }\n  nav ul li a.active,\n  nav ul li a:hover{\n    background: none;\n    color: cyan;\n  }\n}\n.content{\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  text-align: center;\n  z-index: -1;\n  width: 100%;\n  padding: 0 30px;\n  color: #1b1b1b;\n}\n.content div{\n  font-size: 40px;\n  font-weight: 700;\n}<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive HTML5 menu is given below. HTML5 &amp; CSS3 Responsive Menu Source Code index.html style.css<\/p>\n","protected":false},"author":1,"featured_media":3641,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-3638","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Design Responsive Navigation Menu Bar using HTML5 &amp; CSS3<\/title>\n<meta name=\"description\" content=\"In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Design Responsive Navigation Menu Bar using HTML5 &amp; CSS3\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/\" \/>\n<meta property=\"og:site_name\" content=\"Edopedia\" \/>\n<meta property=\"article:author\" content=\"trulyfurqan\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-07T17:30:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-07T17:30:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"880\" \/>\n\t<meta property=\"og:image:height\" content=\"495\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Furqan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Furqan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Design Responsive Navigation Menu Bar using HTML5 & CSS3","description":"In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/","og_locale":"en_US","og_type":"article","og_title":"Design Responsive Navigation Menu Bar using HTML5 & CSS3","og_description":"In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive","og_url":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/","og_site_name":"Edopedia","article_author":"trulyfurqan","article_published_time":"2022-10-07T17:30:04+00:00","article_modified_time":"2022-10-07T17:30:06+00:00","og_image":[{"width":880,"height":495,"url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg","type":"image\/jpeg"}],"author":"Furqan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Furqan","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#article","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/"},"author":{"name":"Furqan","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339"},"headline":"Design Responsive Navigation Menu Bar using HTML5 &#038; CSS3","datePublished":"2022-10-07T17:30:04+00:00","dateModified":"2022-10-07T17:30:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/"},"wordCount":51,"commentCount":0,"publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/","url":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/","name":"Design Responsive Navigation Menu Bar using HTML5 & CSS3","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#primaryimage"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg","datePublished":"2022-10-07T17:30:04+00:00","dateModified":"2022-10-07T17:30:06+00:00","description":"In this tutorial, I will teach you how to design a responsive navigation menu bar using only HTML5 &amp; CSS3. The complete source code of this responsive","breadcrumb":{"@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#primaryimage","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/10\/responsive_menu_html5_css3.jpg","width":880,"height":495,"caption":"Design Responsive Navigation Menu Bar using HTML5 & CSS3"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edopedia.com\/blog\/design-responsive-navigation-menu-bar-using-html5-css3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edopedia.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Design Responsive Navigation Menu Bar using HTML5 &#038; CSS3"}]},{"@type":"WebSite","@id":"https:\/\/www.edopedia.com\/blog\/#website","url":"https:\/\/www.edopedia.com\/blog\/","name":"Edopedia","description":"Coding\/Programming Blog","publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edopedia.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.edopedia.com\/blog\/#organization","name":"Edopedia","url":"https:\/\/www.edopedia.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","width":400,"height":100,"caption":"Edopedia"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339","name":"Furqan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","caption":"Furqan"},"description":"Well. I've been working for the past three years as a web designer and developer. I have successfully created websites for small to medium sized companies as part of my freelance career. During that time I've also completed my bachelor's in Information Technology.","sameAs":["http:\/\/www.edopedia.com\/blog\/","trulyfurqan"],"url":"https:\/\/www.edopedia.com\/blog\/author\/furqan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/comments?post=3638"}],"version-history":[{"count":1,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3638\/revisions"}],"predecessor-version":[{"id":3639,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/3638\/revisions\/3639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media\/3641"}],"wp:attachment":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media?parent=3638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/categories?post=3638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/tags?post=3638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}