"nav"
Bootstrap 3.3.0 Snippet by evarevirus

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <h1 class="text-center"><span>A</span>lert Carousel</h1> <div class="alert-info" style="margin:0;"> </div> <nav class="navbar navbar-default"> <div id="info" class="collapse in"> <div class="alert alert-info info no-bottom-margin"> <div class="container-fluid"> <div id="carousel" class="carousel slide"> <div class="carousel-inner" role="listbox"> <div class="item active"> <div class="carousel-caption"> <a href="#"> <i class="fa fa-warning"></i> New security measures in place</a> </div> </div> <div class="item"> <div class="carousel-caption"> <a href="#"> <i class="fa fa-warning"></i> New security measures in place</a> </div> </div> </div><!-- .carousel-inner --> <!-- Controls --> <a class="left carousel-control" href="#carousel" role="button" data-slide="prev"> <span class="fa fa-angle-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel" role="button" data-slide="next"> <span class="fa fa-angle-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div><!-- #carousel --> </div> </div><!-- .alert-info --> </div><!-- #alert.collapse --> <div class="container-fluid"> <ul class="nav navbar-nav navbar-right navbar-hybrid"> <li class="bg-info" data-toggle="collapse" data-target="#info"> <a href="#"><i class="fa fa-bell-o"></i> <span class="sr-only">Alerts</span></a></li> <li><a href="#">Link</a></li> </ul> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapse" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="collapse"> <ul class="nav navbar-nav"> <li class="active"> <a href="#">Link <span class="sr-only">(current)</span></a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> <li role="separator" class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav>
.alert .carousel .left.carousel-control, .alert .carousel .right.carousel-control{ background-image: none; color: inherit; text-shadow: none; width: 2%; opacity: 1; } .alert .carousel .item{ height: 30px; } .alert .carousel-caption{ padding: 0; bottom: 5px; left: 4%; text-align: left; text-shadow: none; } /* remove bg when closed */ .navbar li.bg-info.collapsed{ background-color: transparent; } /* remove margin-bottom */ .no-bottom-margin{ margin-bottom: 0px !important; } /* move hamburger menu left */ .navbar-toggle{ float:left; margin-left: 10px; margin-right: 0; } /* navbar desktop & mobile */ .navbar-hybrid{ margin-top: 0; margin-bottom: 0; } .navbar-hybrid.navbar-right{ float: right; margin-left: 15px; } .navbar-hybrid li{ float: left; }

Related: See More


Questions / Comments: