Add a separator to each item

Asked

Viewed 713 times

1

Hello,

I have the website exemplo.com, in it I use the Bootstrap, I would like to add a / to each item in his navbar, as a breadcumb.

Breadcumb

Like a breadcumb but in the navbar.

Thanks in advance.

  • 2

    You can explain better what you already have with code and/or image to make it clearer?

  • 1

    @Sergio code I don’t have, I searched the internet but I couldn’t find anything that could help me.

  • 1

    You don’t even have the navbar code ? Provide something for people to help you... A picture of what you want or a link...

1 answer

3


Although your question is a little confusing, see if this isn’t what you need:

.nav .breadcrumb {
    margin: 0 7px;
}
@media (min-width: 768px) {
    .nav .breadcrumb {
        float: left;
        margin: 7px 10px;
    }
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
      <div class="container">
       
        <ul class="nav navbar-nav navbar-right">
          <ul class="breadcrumb list-inline">
            <li><a href="#">Home</a></li>
            <li><a href="#">Library</a></li>
            <li class="active">Data</li>
          </ul>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hello George <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="#">Settings</a></li>
              <li><a href="#">Logout</a></li>
            </ul>
          </li>
          <li><a href="#"><span class="glyphicon glyphicon-info-sign icons-padding"></span> Help</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-off icons-padding"></span> Exit</a></li>
        </ul>
      </div>
    </nav>

Source: Breadcrumb into a navbar in bootstrap 3.0.2.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.