0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-30 12:24:19 +01:00
Bootstrap/docs/components/breadcrumb.md

35 lines
1.2 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
description: Indicate the current page's location within a navigational hierarchy.
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 %}