Simple CSS-only breadcrumb
Simple and neutral breacrumb, created without image, using the "CSS arrows" technique.
HTML
<ol id="breadcrumb">
<li href="#">Home</li>
<li href="#">Grandpa</li>
</ol>
CSS
#breadcrumb {
margin-bottom: 20px;
line-height: 30px;
color: #aaa;
padding: 1px;
border: 1px solid #F0F0F0;
}
li {
display: block;
float: left;
background: #F0F0F0;
padding-right: 10px;
height: 30px;
margin-right: 31px;
position: relative;
text-decoration: none;
color: #aaa;
}
li::last-of-type {
margin-right: 25px;
}
li::before {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
top: 0;
left: -30px;
border: 15px solid transparent;
border-color: #F0F0F0;
border-left-color: transparent;
}
li::after {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
top: 0;
right: -30px;
border: 15px solid transparent;
border-left-color: #F0F0F0;
}
li::first-of-type {
padding-left: 15px;
}
li::first-of-type::before {
display: none;
}
li:hover {
background: #00b0ec;
color: #fff;
text-decoration: none;
}
li:hover::before {
border-color: #00b0ec;
border-left-color: transparent;
}
li:hover::after {
border-left-color: #00b0ec;
}