{"id":8549,"date":"2021-08-31T12:58:46","date_gmt":"2021-08-31T12:58:46","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=8549"},"modified":"2021-08-31T12:58:48","modified_gmt":"2021-08-31T12:58:48","slug":"bootstrap-component-navigation-bar","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/","title":{"rendered":"Bootstrap:-Component &#8220;Navigation bar&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The\u00a0navbar\u00a0is one of the prominent features of\u00a0Bootstrap\u00a0sites. A navigation bar is a navigation header that is placed at the top of the page. the navigation bar can extend or collapse, depending on the screen size. A standard navigation bar is created with the\u00a0<strong>.navbar<\/strong>\u00a0class.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Format of nav bar:-<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Vertical Navbar by using<strong> class=&#8221;navbar-nav&#8221;<\/strong>.<\/li><li>Centered Navbar by using <strong>.justify-content-center<\/strong> class to center the navigation bar.<\/li><li>Colored Navbar by using any of the <strong>.bg-color <\/strong>classes to change the background color of navbar.<\/li><li>Brand\/Logo by using<strong> .navbar-brand<\/strong> class is used to highlight the brand\/logo\/project name of your page.<\/li><li>Collapsing The navbar \u00a0To create a collapsible navigation bar, use a button with<strong>\u00a0class=&#8221;navbar-toggler&#8221;, data-toggle=&#8221;collapse&#8221; and data-target=&#8221;#thetarget&#8221;<\/strong>.<\/li><li>Navbar With Dropdown.<\/li><li>Navbar Froms and Buttons Add a\u00a0<strong>&lt;form><\/strong>\u00a0element with<strong>\u00a0class=&#8221;form-inline&#8221;<\/strong>\u00a0to group inputs and buttons side-by-side.<\/li><li>Nevbar Text use<strong> .navbar-text <\/strong>class to vertically align any elements inside the navbar that are not links.<\/li><li>Fixed Navbar by using<strong> .fixed-top<\/strong> or <strong>.fixed-bottom<\/strong> class to make the navbar fixed.<\/li><li>Sticky navbar use the<strong> .sticky-top<\/strong> class to make the navbar fixed\/stay at the thop of the page.<\/li><\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/0bfcc82edde1f03950b868b8d847b66d.js\"><\/script>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/index-5.html\">navbar with all examples<\/a><a href=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/index-5.html\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png\" alt=\"\" class=\"wp-image-8556\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-300x162.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-768x414.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1536x829.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0navbar\u00a0is one of the prominent features of\u00a0Bootstrap\u00a0sites. A navigation bar is a navigation header that is placed at the top [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5670],"tags":[6620,568,6619,6557,5267,6623,6622,1122,545,6617,6618,593,6621,213],"class_list":["post-8549","post","type-post","status-publish","format-standard","hentry","category-bootstrap","tag-navbar-class-in-bootstrap","tag-bootstrap","tag-bootstrap-component-navbar","tag-bootstrap-components","tag-bootstrap4","tag-brand-logo-in-navbar","tag-fixed-navbar-in-top-or-bottom-in-bootstrap","tag-guide","tag-how","tag-navbar-in-bootstrap","tag-navbar-in-bootstrap4","tag-process","tag-sticky-top-in-bootstrap","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bootstrap:-Component &quot;Navigation bar&quot; - scmGalaxy<\/title>\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.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap:-Component &quot;Navigation bar&quot; - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"The\u00a0navbar\u00a0is one of the prominent features of\u00a0Bootstrap\u00a0sites. A navigation bar is a navigation header that is placed at the top [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-31T12:58:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-31T12:58:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png\" \/>\n<meta name=\"author\" content=\"vikashdev k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vikashdev k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/\"},\"author\":{\"name\":\"vikashdev k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"headline\":\"Bootstrap:-Component &#8220;Navigation bar&#8221;\",\"datePublished\":\"2021-08-31T12:58:46+00:00\",\"dateModified\":\"2021-08-31T12:58:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/\"},\"wordCount\":203,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Capture-2-1024x553.png\",\"keywords\":[\".navbar class in bootstrap\",\"Bootstrap\",\"bootstrap component navbar\",\"bootstrap components\",\"bootstrap4\",\"brand\\\/logo in navbar\",\"fixed navbar in top or bottom in bootstrap\",\"Guide\",\"How\",\"navbar in bootstrap\",\"navbar in bootstrap4\",\"Process\",\"sticky-top in bootstrap\",\"Tutorial\"],\"articleSection\":[\"Bootstrap\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/\",\"name\":\"Bootstrap:-Component \\\"Navigation bar\\\" - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Capture-2-1024x553.png\",\"datePublished\":\"2021-08-31T12:58:46+00:00\",\"dateModified\":\"2021-08-31T12:58:48+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Capture-2.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Capture-2.png\",\"width\":1920,\"height\":1036},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/bootstrap-component-navigation-bar\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bootstrap:-Component &#8220;Navigation bar&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\",\"name\":\"vikashdev k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"caption\":\"vikashdev k\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/vikashdev\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap:-Component \"Navigation bar\" - scmGalaxy","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.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap:-Component \"Navigation bar\" - scmGalaxy","og_description":"The\u00a0navbar\u00a0is one of the prominent features of\u00a0Bootstrap\u00a0sites. A navigation bar is a navigation header that is placed at the top [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/","og_site_name":"scmGalaxy","article_published_time":"2021-08-31T12:58:46+00:00","article_modified_time":"2021-08-31T12:58:48+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png","type":"","width":"","height":""}],"author":"vikashdev k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vikashdev k","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/"},"author":{"name":"vikashdev k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"headline":"Bootstrap:-Component &#8220;Navigation bar&#8221;","datePublished":"2021-08-31T12:58:46+00:00","dateModified":"2021-08-31T12:58:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/"},"wordCount":203,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png","keywords":[".navbar class in bootstrap","Bootstrap","bootstrap component navbar","bootstrap components","bootstrap4","brand\/logo in navbar","fixed navbar in top or bottom in bootstrap","Guide","How","navbar in bootstrap","navbar in bootstrap4","Process","sticky-top in bootstrap","Tutorial"],"articleSection":["Bootstrap"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/","name":"Bootstrap:-Component \"Navigation bar\" - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2-1024x553.png","datePublished":"2021-08-31T12:58:46+00:00","dateModified":"2021-08-31T12:58:48+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Capture-2.png","width":1920,"height":1036},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/bootstrap-component-navigation-bar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Bootstrap:-Component &#8220;Navigation bar&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515","name":"vikashdev k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","caption":"vikashdev k"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/vikashdev\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=8549"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8549\/revisions"}],"predecessor-version":[{"id":8557,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8549\/revisions\/8557"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=8549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=8549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=8549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}