<div class="cp_breadcrumb">
<ul class="breadcrumbs">
<li><a href="#">Home</a></li>
<li><a href="#">Category</a></li>
<li><a href="#">Sub Category</a></li>
<li>Contents</li>
</ul>
</div>
.cp_breadcrumb *, .cp_breadcrumb *:after, .cp_breadcrumb *:before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_breadcrumb {
margin: 1em auto;
padding: 1em 2em;
background-color: #3949AB;
color: #fff;
border-radius: 0.5em;
}
.cp_breadcrumb a {
text-decoration: none;
color: #7986CB;
}
.cp_breadcrumb .breadcrumbs {
padding-left: 0;
margin-top: 0;
margin-bottom: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
}
.cp_breadcrumb li {
display: inline-block;
position: relative;
padding-right: calc(16px + 8px);
margin-right: 8px;
color: #7986CB;
}
.cp_breadcrumb li::before {
content: '›';
width: 1em;
height: 1em;
line-height: 1;
text-align: center;
font-size: 1em;
color: inherit;
position: absolute;
top: 50%;
right: 0;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.cp_breadcrumb li:last-child {
margin-right: 0;
padding-right: 0;
color: #ffffff;
}
.cp_breadcrumb li:last-child::before {
content: normal;
}