<!-- The mobile navbar-toggle button can be safely removed since you do not need it in a non-responsive implementation -->
<spanclass="sr-only">Toggle navigation</span>
<spanclass="icon-bar"></span>
<spanclass="icon-bar"></span>
<spanclass="icon-bar"></span>
</button>
<aclass="navbar-brand"href="#">Project name</a>
<aclass="navbar-brand"href="#">Project name</a>
</div>
</div>
<divid="navbar"class="navbar-collapse collapse">
<!-- Note that the .navbar-collapse and .collapse classes have been removed from the #navbar -->
<divid="navbar">
<ulclass="nav navbar-nav">
<ulclass="nav navbar-nav">
<liclass="active"><ahref="#">Home</a></li>
<liclass="active"><ahref="#">Home</a></li>
<li><ahref="#about">About</a></li>
<li><ahref="#about">About</a></li>
...
@@ -85,7 +81,7 @@
...
@@ -85,7 +81,7 @@
</div>
</div>
<h3>What changes</h3>
<h3>What changes</h3>
<p>Note the lack of the <code><meta name="viewport" content="width=device-width, initial-scale=1"></code>, which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and are basically good to go.</p>
<p>Note the lack of the <code><meta name="viewport" content="width=device-width, initial-scale=1"></code>, which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and changed the navbar to prevent collapsing, and are basically good to go.</p>
<h3>Regarding navbars</h3>
<h3>Regarding navbars</h3>
<p>As a heads up, the navbar component is rather tricky here in that the styles for displaying it are rather specific and detailed. Overrides to ensure desktop styles display are not as performant or sleek as one would like. Just be aware there may be potential gotchas as you build on top of this example when using the navbar.</p>
<p>As a heads up, the navbar component is rather tricky here in that the styles for displaying it are rather specific and detailed. Overrides to ensure desktop styles display are not as performant or sleek as one would like. Just be aware there may be potential gotchas as you build on top of this example when using the navbar.</p>