"Triangle Breadcrumbs Arrows"
Bootstrap 3.1.0 Snippet by nickdecorte

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Breadcrumb Default</h2>
<div class="btn-group btn-breadcrumb">
<a href="#" class="btn btn-default"><i class="glyphicon glyphicon-home"></i></a>
<a href="#" class="btn btn-default">Snippets</a>
<a href="#" class="btn btn-default">Breadcrumbs</a>
<a href="#" class="btn btn-default">Default</a>
</div>
</div>
<div class="row">
<h2>Breadcrumb Primary</h2>
<div class="btn-group btn-breadcrumb">
<a href="#" class="btn btn-primary"><i class="glyphicon glyphicon-home"></i></a>
<a href="#" class="btn btn-primary">Snippets</a>
<a href="#" class="btn btn-primary">Breadcrumbs</a>
<a href="#" class="btn btn-primary">Primary</a>
</div>
</div>
<div class="row">
<h2>Breadcrumb Success</h2>
<div class="btn-group btn-breadcrumb">
<a href="#" class="btn btn-success"><i class="glyphicon glyphicon-home"></i></a>
<a href="#" class="btn btn-success">Snippets</a>
<a href="#" class="btn btn-success">Breadcrumbs</a>
<a href="#" class="btn btn-success">Success</a>
</div>
</div>
<div class="row">
<h2>Breadcrumb Info</h2>
<div class="btn-group btn-breadcrumb">
<a href="#" class="btn btn-info"><i class="glyphicon glyphicon-home"></i></a>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** The Magic **/
.btn-breadcrumb .btn:not(:last-child):after {
content: " ";
display: block;
width: 0;
height: 0;
border-top: 17px solid transparent;
border-bottom: 17px solid transparent;
border-left: 10px solid white;
position: absolute;
top: 50%;
margin-top: -17px;
left: 100%;
z-index: 3;
}
.btn-breadcrumb .btn:not(:last-child):before {
content: " ";
display: block;
width: 0;
height: 0;
border-top: 17px solid transparent;
border-bottom: 17px solid transparent;
border-left: 10px solid rgb(173, 173, 173);
position: absolute;
top: 50%;
margin-top: -17px;
margin-left: 1px;
left: 100%;
z-index: 3;
}
/** The Spacing **/
.btn-breadcrumb .btn {
padding:6px 12px 6px 24px;
}
.btn-breadcrumb .btn:first-child {
padding:6px 6px 6px 10px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

This is not compatible with IE8. Any workaround for that?

JP () - 9 years ago - Reply 0


This is great, thanks.

How do you do this with a custom color ie @brand-primary: rgba(244, 79, 154, 1);?

Particularly the :
.btn-breadcrumb .btn.btn-warning:not(:last-child):after

sections?
Do you have a LESS stylsheet for it?

Thank you

Mathew Rudkin () - 9 years ago - Reply 0


Hi!
This snippet is superawesome but I would like to play with the less version of the styles. Is it possible?
Thanks!

Garito () - 9 years ago - Reply 0


Looks weird once you change the themes., due to change in the btn background!!

Sathish Kumar () - 9 years ago - Reply 0


Hi.
Thanks for this.
When you zoom in on this page, it messes up the triangles. Does anyone know of a way to avoid this?

Robin () - 9 years ago - Reply 0


dont know why but primary look weird on my website

Max () - 9 years ago - Reply 0


How to make it compatible with bootstrap theme?

jandosul () - 9 years ago - Reply 0


I had to add a '&& nbsp' (single ampersand of course) after the home icon on each example in order for the home link to appear as tall as the text links.

Bob () - 9 years ago - Reply 0


The last item needs some margin-left fix, other wise the left border of last item is visible
possible fix
.btn-breadcrumb .btn:last-child {
margin-left:0px;
}

Hamilton () - 10 years ago - Reply 0


Nice Job, by the way :)

Hamilton () - 10 years ago - Reply 0


active ....

Henry () - 10 years ago - Reply 0


Hi.
It doesn't seem to be compatible with bootstrap-theme.css.

It it possible to make it compatible?
Nice job by the way.

maxani () - 10 years ago - Reply 0


Nice. Is it cross browser ?

benjaminb10 () - 10 years ago - Reply 0