0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-13 01:08:58 +01:00
Bootstrap/docs/components/breadcrumb.md

34 lines
1.1 KiB
Markdown
Raw Normal View History

2014-07-12 10:03:13 +02:00
---
layout: docs
2014-07-12 10:03:13 +02:00
title: Breadcrumb
group: components
2014-07-12 10:03:13 +02:00
---
Indicate the current page's location within a navigational hierarchy. Separators are automatically added in CSS through [`::before`](https://developer.mozilla.org/en-US/docs/Web/CSS/::before) and [`content`](https://developer.mozilla.org/en-US/docs/Web/CSS/content).
2014-07-12 10:03:13 +02:00
{% example html %}
<ol class="breadcrumb">
<li class="breadcrumb-item active">Home</li>
2014-07-12 10:03:13 +02:00
</ol>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active">Library</li>
2014-07-12 10:03:13 +02:00
</ol>
<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>
2014-07-12 10:03:13 +02:00
</ol>
{% endexample %}
Similar to our navigation components, breadcrumbs work fine with or without the usage of list markup.
{% example html %}
<nav class="breadcrumb">
<a class="breadcrumb-item" href="#">Home</a>
<a class="breadcrumb-item" href="#">Library</a>
<a class="breadcrumb-item" href="#">Data</a>
<span class="breadcrumb-item active">Bootstrap</span>
</nav>
2014-07-12 10:03:13 +02:00
{% endexample %}