This is the first time you ask a question.
I work with twitter bootstrap on website design. I need to create a navigation menu so that the items listed there are separated by a pipeline. I found another similar question here - Add a channel delimiter after items in an unordered list if this item is not the last in the line , and I used this, but the items are not separated as expected.
What I need to get: http://prntscr.com/4br2lb
After implementing the code from the message I found here, I get the following: http://prntscr.com/4br2yj
Here is my code:
HTML:
<div class="navbar navbar-default navbar-static-top header-menu"> <div class="collapse navbar-collapse navHeaderMenuCollapse"> <ul class="nav navbar-nav navbar-middle navbar-text" style="float:none;margin: 0 auto; display: table;table-layout: fixed;"> <li><a href="#">HOME</a></li> <li><a href="#">AUTO</a></li> <li><a href="#">LIFE</a></li> <li><a href="#">HEALTH</a></li> <li><a href="#">BUSINESS</a></li> <li><a href="#">MORE...</a></li> </ul> </div> </div>
CSS
ul li { float: left; } ul li:after { content: "|"; padding: 0 .5em; }
Thank you in advance!
source share