dimanche 19 avril 2015

Is left-aligning the button of a Twitter Bootstrap navbar possible?

I would like for the button to appear on the left-hand side of the menu on mobile devices.

I have searched for examples to no avail.

Is this possible with Twitter Bootstrap?

Here is my code:

<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Brand</a>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</div><!--/.nav-collapse -->

Aucun commentaire:

Enregistrer un commentaire