twitter bootstrap - Repositioning Navbar and links -
i new bootstrap , wondering how reposition navbar , how reposition links in navbar.
any welcome.
this question shows very little way of effort, started, here's little customization of bootstrap navbar. if doesn't meet needs, please use starting point ask more focused question in future.
here's demo in fiddle
i've added links navbar-collapse
section. i've hidden navbar-header
visible-xs
doesn't interfere position of other links in open position , show once collapsed on small screen.
<div class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- header --> <div class="navbar-header visible-xs"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">bootstrap 3.0 skeleton</a> </div> <!-- navbar links --> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="#courses">courses</a></li> <li ><a href="#about">about us</a></li> <li><a href="#news">news</a></li> <li class='trapezoid'><a href="#home">home</a></li> <li><a href="#awards">awards</a></li> <li><a href="#projects">projects</a></li> <li><a href="#contact">contact us</a></li> </ul> </div> </div> </div>
then can style home link little more distinguished. used trapezoid code:
li.trapezoid { border-bottom: 50px solid #e7e7e7; border-left: 25px solid transparent; border-right: 25px solid transparent; height: 0; width: 100px; } li.trapezoid { padding-left: 0; padding-right: 0; text-align: center; }
Comments
Post a Comment