Breadcrumb

Bootstrap Breadcrumb

Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5. While we'll continue to support for the transition period, we encourage you to migrate to MDB5. We're offering a huge discount on MDB5 PRO to help with your transition, enabling you to leverage the full potential of the latest version. You can find more information here.
upgrade with discount

Breadcrumbs indicate the current page’s location within a navigational hierarchy that automatically adds separators via CSS.


Overview

Separators are automatically added in CSS through ::before and content.

        
            

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb">
            <li class="breadcrumb-item active">Home</li>
          </ol>
        </nav>

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#">Home</a></li>
            <li class="breadcrumb-item active">Library</li>
          </ol>
        </nav>

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#">Home</a></li>
            <li class="breadcrumb-item"><a href="#">Library</a></li>
            <li class="breadcrumb-item active">Data</li>
          </ol>
        </nav>

      
        
    

Changing the separator

Separators are automatically added in CSS through ::before and content. They can be changed by changing $breadcrumb-divider. The quote function is needed to generate the quotes around a string, so if you want > as a separator, you can use this:

        
            

        $breadcrumb-divider: quote(">");

      
        
    

It’s also possible to use a base64 embedded SVG icon:

        
            

        $breadcrumb-divider:
        url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxwYXRoIGQ9Ik0yLjUgMEwxIDEuNSAzLjUgNCAxIDYuNSAyLjUgOGw0LTQtNC00eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+);

      
        
    

The separator can be removed by setting $breadcrumb-divider to none:

        
            

        $breadcrumb-divider: none;

      
        
    

Accessibility

Since breadcrumbs provide navigation, it’s a good idea to add a meaningful label such as aria-label="breadcrumb" to describe the type of navigation provided in the <nav> element, as well as applying an aria-current="page" to the last item of the set to indicate that it represents the current page.

For more information, see the WAI-ARIA Authoring Practices for the breadcrumb pattern.


Examples

With breadcrumbs you can use different types of colors or you can implement icons or images with our breadcrumbs.

Here are some examples.


Breadcrumbs with dark background

        
            

        <div class="light-font">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb default-color">
              <li class="breadcrumb-item active">Home</li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb primary-color">
              <li class="breadcrumb-item"><a class="white-text" href="#">Home</a></li>
              <li class="breadcrumb-item active">Library</li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb secondary-color">
              <li class="breadcrumb-item"><a class="white-text" href="#">Home</a></li>
              <li class="breadcrumb-item"><a class="white-text" href="#">Library</a></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>

      
        
    
        
            
        light-font .breadcrumb-item + .breadcrumb-item::before {
          color: #fff; 
        }

        .light-font .breadcrumb-item.active {
          color: #cfd8dc; 
        }
      
        
    

Breadcrumbs with light background

        
            

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb cyan lighten-4">
            <li class="breadcrumb-item active">Home</li>
          </ol>
        </nav>

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb pink lighten-4">
            <li class="breadcrumb-item"><a class="black-text" href="#">Home</a></li>
            <li class="breadcrumb-item active">Library</li>
          </ol>
        </nav>

        <nav aria-label="breadcrumb">
          <ol class="breadcrumb purple lighten-4">
            <li class="breadcrumb-item"><a class="black-text" href="#">Home</a></li>
            <li class="breadcrumb-item"><a class="black-text" href="#">Library</a></li>
            <li class="breadcrumb-item active">Data</li>
          </ol>
        </nav>

      
        
    
        
            
        .dark-font .breadcrumb-item + .breadcrumb-item::before {
          color: #000; 
        }

        .dark-font .breadcrumb-item.active {
          color: #455a64; 
        }
      
        
    

Breadcrumbs in uppercase

        
            

        <div class="text-uppercase">

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb cyan lighten-4">
              <li class="breadcrumb-item active">Home</li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb cyan lighten-4">
              <li class="breadcrumb-item"><a class="" href="#">Home</a></li>
              <li class="breadcrumb-item active">Library</li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb cyan lighten-4">
              <li class="breadcrumb-item"><a class="" href="#">Home</a></li>
              <li class="breadcrumb-item"><a class="" href="#">Library</a></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>

        </div>

      
        
    

Breadcrumbs with a bold font

        
            

        <div class="font-up-bold text-uppercase">

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
              <li class="breadcrumb-item active">
                <h5 class="mr-3 mb-0"><strong>Home</strong></h5>
              </li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
              <li class="breadcrumb-item"><a class="" href="#">
                  <h5 class="mr-3 mb-0"><strong>Home</strong></h5>
                </a></li>
              <li class="breadcrumb-item active">
                <h5 class="mr-3 mb-0"><strong>Library</strong></h5>
              </li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
              <li class="breadcrumb-item"><a class="" href="#">
                  <h5 class="mr-3 mb-0"><strong>Home</strong></h5>
                </a></li>
              <li class="breadcrumb-item"><a class="" href="#">
                  <h5 class="mr-3 mb-0"><strong>Library</strong></h5>
                </a></li>
              <li class="breadcrumb-item active">
                <h5 class="mr-3 mb-0"><strong>Data</strong></h5>
              </li>
            </ol>
          </nav>

        </div>

      
        
    
        
            
        .font-up-bold .breadcrumb-item + .breadcrumb-item::before {
          content: none; 
        }

        .font-up-bold .breadcrumb-item a h5::after {
          content: "/";
          margin-left: 1rem;
          color: #868e96; 
        }
      
        
    

Breadcrumbs with icons

        
            

        <div class="bc-icons">

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb pink lighten-4">
              <li class="breadcrumb-item active"><i class="far fa-star mr-2 white-text" aria-hidden="true"></i>Home</li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb pink lighten-3">
              <li class="breadcrumb-item"><i class="far fa-star mr-2 white-text" aria-hidden="true"></i><a
                  class="white-text" href="#">Home</a></li>
              <li class="breadcrumb-item active"><i class="far fa-star mx-2 white-text" aria-hidden="true"></i>Library
              </li>
            </ol>
          </nav>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb pink lighten-2">
              <li class="breadcrumb-item"><i class="far fa-star mr-2 white-text" aria-hidden="true"></i><a
                  class="white-text" href="#">Home</a></li>
              <li class="breadcrumb-item"><i class="far fa-star mx-2 white-text" aria-hidden="true"></i><a
                  class="white-text" href="#">Library</a></li>
              <li class="breadcrumb-item active"><i class="far fa-star mx-2 white-text" aria-hidden="true"></i>Data</li>
            </ol>
          </nav>

        </div>

      
        
    
        
            
        .bc-icons .breadcrumb-item + .breadcrumb-item::before {
          content: none; 
        }

        .bc-icons .breadcrumb-item.active {
          color: #eeeeee; 
        }
      
        
    

Breadcrumbs with arrows

        
            
        <div class="bc-icons-2">

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb indigo lighten-4">
              <li class="breadcrumb-item"><a class="black-text" href="#">Home</a><i class="fas fa-caret-right mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i class="fas fa-caret-right mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb blue-grey lighten-4">
              <li class="breadcrumb-item"><a class="black-text" href="#">Home</a><i
                  class="fas fa-angle-double-right mx-2" aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i
                  class="fas fa-angle-double-right mx-2" aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb purple lighten-4">
              <li class="breadcrumb-item"><a class="black-text" href="#">Home</a><i class="fas fa-angle-right mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i class="fas fa-angle-right mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>
          <div style="height: 40px;"></div>

          <nav aria-label="breadcrumb">
            <ol class="breadcrumb red lighten-4">
              <li class="breadcrumb-item"><a class="black-text" href="#">Home</a><i
                  class="fas fa-angle-double-left mx-2" aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i
                  class="fas fa-angle-double-left mx-2" aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb cyan lighten-4">
              aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i class="fas fa-angle-left mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb amber lighten-4">
              <li class="breadcrumb-item"><a class="black-text" href="#">Home</a><i class="fas fa-caret-left mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item"><a class="black-text" href="#">Library</a><i class="fas fa-caret-left mx-2"
                  aria-hidden="true"></i></li>
              <li class="breadcrumb-item active">Data</li>
            </ol>
          </nav>

        </div>
      
        
    
        
            
        .bc-icons-2 .breadcrumb-item + .breadcrumb-item::before {
          content: none; 
        }

        .bc-icons-2 .breadcrumb-item.active {
          color: #455a64; 
        }
      
        
    

Breadcrumbs with a hamburger button

        
            

        <nav class="navbar navbar-expand-md navbar-dark indigo mb-5">
          <!-- SideNav slide-out button -->
          <div class="float-left">
            <a class="white-text button-collapse" href="#!" data-activates="slide-out"><i class="fas fa-bars"></i></a>
          </div>
          <!-- Breadcrumb-->
          <div class="mr-auto">
            <nav aria-label="breadcrumb">
              <ol class="breadcrumb clearfix d-none d-md-inline-flex pt-0">
                <li class="breadcrumb-item"><a class="white-text" href="#!">Home</a></li>
                <li class="breadcrumb-item active">Library</li>
              </ol>
            </nav>
          </div>
          <form class="form-inline">
            <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
          </form>
        </nav>

        </div>
        <!-- Grid column -->

        <!-- Grid column -->
        <div class="col-md-12">

          <nav class="navbar navbar-expand-md navbar-dark primary-color mb-5 no-content">
            <!-- SideNav slide-out button -->
            <div class="float-left">
              <a class="white-text button-collapse" href="#!" data-activates="slide-out"><i class="fas fa-bars"></i></a>
            </div>
            <!-- Breadcrumb-->
            <div class="mr-auto">
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb clearfix d-none d-md-inline-flex pt-0">
                  <li class="breadcrumb-item"><a class="white-text" href="#!">Javascript</a><i
                      class="fas fa-angle-double-right mx-2 white-text" aria-hidden="true"></i></li>
                  <li class="breadcrumb-item active">Date Picker</li>
                </ol>
              </nav>
            </div>
            <ul class="navbar-nav ml-auto nav-flex-icons">
              <li class="nav-item">
                <a class="nav-link"><i class="fab fa-twitter"></i></a>
              </li>
              <li class="nav-item">
                <a class="nav-link"><i class="fab fa-google-plus-g"></i></a>
              </li>
              <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown"
                  aria-haspopup="true" aria-expanded="false"><i class="fas fa-user"></i>
                </a>
                <div class="dropdown-menu dropdown-menu-right dropdown-unique" aria-labelledby="navbarDropdownMenuLink">
                  <a class="dropdown-item waves-effect waves-light" href="#">Action</a>
                  <a class="dropdown-item waves-effect waves-light" href="#">Another action</a>
                  <a class="dropdown-item waves-effect waves-light" href="#">Something else here</a>
                </div>
              </li>
            </ul>
          </nav>

        </div>
        <!-- Grid column -->

        <!-- Grid column -->
        <div class="col-md-12">

          <nav class="navbar navbar-expand-md navbar-dark pink darken-4 mb-5 no-content">
            <!-- SideNav slide-out button -->
            <div class="float-left">
              <a class="white-text button-collapse" href="#!" data-activates="slide-out"><i class="fas fa-bars"></i></a>
            </div>
            <!-- Breadcrumb-->
            <div class="mr-auto">
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb clearfix d-none d-md-inline-flex pt-0">
                  <li class="breadcrumb-item"><a class="white-text" href="#!">Components</a><i
                      class="far fa-hand-point-right mx-3 white-text" aria-hidden="true"></i></li>
                  <li class="breadcrumb-item active">Buttons</li>
                </ol>
              </nav>
            </div>
            <ul class="navbar-nav ml-auto nav-flex-icons">
              <li class="nav-item">
                <a class="nav-link">1 <i class="fas fa-envelope white-text"></i></a>
              </li>
            </ul>
          </nav>

      
        
    
        
            
        .navbar .breadcrumb-item + .breadcrumb-item::before {
          color: #bdbdbd; 
        }
        .navbar .breadcrumb-item.active {
          color: #bdbdbd; 
        }
        .navbar.no-content .breadcrumb-item + .breadcrumb-item::before {
          content: none; 
        }
      
        
    

        
            

        <nav class="navbar navbar-expand-md navbar-dark mdb-color mb-5">
          <!-- Just an image -->
          <a class="navbar-brand" href="#!">
            <img src="https://mdbootstrap.com/img/logo/mdb-transparent.webp" height="30" alt="MDB logo">
          </a>
          <!-- Breadcrumb-->
          <div class="mr-auto">

            <nav aria-label="breadcrumb">
              <ol class="breadcrumb d-inline-flex pl-0 pt-0">
                <li class="breadcrumb-item"><a class="white-text" href="#!">Layout</a></li>
                <li class="breadcrumb-item active">Grid Usage</li>
              </ol>
            </nav>

          </div>
        </nav>