I've been working on creating a breadcrumb that resembles the design shown in this https://i.sstatic.net/lRcIN.png
I have made some progress, but I'm struggling to add the border colors to the <li>
items. Can anyone help me with this? Here is the code I have written so far:
#breadcrumbs{
overflow: hidden;
width: 100%;
list-style: none;
margin-bottom: 0px;
}
#breadcrumbs li{
float: left;
margin: 0 .3em 0 1em;
font-size: 18px;
font-weight: 400;
letter-spacing: 1px;
}
#breadcrumbs a{
background: #eef6f8;
padding: .4em 1em;
float: left;
text-decoration: none;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
position: relative;
}
#breadcrumbs > li.active > a{
background:#00305e;
color: #fff;
}
#breadcrumbs a:hover{
background: #99db76;
}
#breadcrumbs a::before{
content: "";
position: absolute;
top: 50%;
margin-top: -1.5em;
border-width: 1.5em 0 1.5em 1em;
border-style: solid;
border-color: #eef6f8 #eef6f8 #eef6f8 transparent;
left: -1em;
}
#breadcrumbs li:first-child a::before{
border-color:#eef6f8;
}
#breadcrumbs li.active > a::after{
border-left: 1em solid #00305e;
}
#breadcrumbs li.active:first-child > a::before{
border-color:#00305e;
}
#breadcrumbs a:hover::before{
border-color: #99db76 #99db76 #99db76 transparent;
}
#breadcrumbs a::after{
content: "";
position: absolute;
top: 50%;
margin-top: -1.5em;
border-top: 1.5em solid transparent;
border-bottom: 1.5em solid transparent;
border-left: 1em solid #eef6f8;
right: -1em;
}
#breadcrumbs a:hover::after{
border-left-color: #99db76;
}
#breadcrumbs .current,
#breadcrumbs .current:hover{
font-weight: bold;
background: none;
}
#breadcrumbs .current::after,
#breadcrumbs .current::before{
content: normal;
}
<head>
<style>
</style>
</head>
<body style="background-color:wheat">
<div class="crumbs-menu">
<ul id="breadcrumbs">
<li class="active"><a href="">Medical</a></li>
<li><a href="">Dental</a></li>
<li><a href="">Vision</a></li>
</ul>
</div>
</body>