css - Making a custom navbar with Bootstrap -
i want make custom navbar shown in image mocked up.
i've written far -
my html:
<nav class="navbar navbar-default"> <div class="container"> <!-- brand , toggle grouped better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" 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 nav links, forms, , other content toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">home</a></li> <li><a href="#">about</a></li> <li><a href="#">events</a></li> <li><a href="#">contact</a></li> <li><a href="#">play video</a></li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav>
my css:
.navbar { background: url(../images/pattern.png) repeat; background-color: white; } .navbar-brand, .navbar-nav li { font-family: 'josefin sans'; font-size: 14px; font-weight: 700; line-height: 80px; height: 80px; padding-top: 0; -webkit-font-smoothing: antialiased; text-transform: uppercase; letter-spacing: .1em; color: #808080; }
this looks normal navbar should. don't know how position "play video" part , links(home, etc.) part separator in between them. ideas on how should proceed?
<li class="play"><a href="#">play video</a></li>
nex writee code
.play::before { color: gray; content: "|"; float: left; margin-right: 23px; }
and put play icon/image in list item e.g
<li class="play"><a href="#"><img src="play-icon.png"> play video</a></li> //place play icon path on play-icon.png place
hope help. thanks
Comments
Post a Comment