Pure CSS Progress Arrows
Progress arrows for a cart path using just CSS and :before and :after
by Mr_Vasu
HTML
<ul id="progress">
<li>Step 1</li>
<li class="">Step 2</li>
<li>Step 3</li>
<li class="active">Step 4</li>
</ul>
CSS
* {
box-sizing: border-box;
}
#progress {
padding: 0;
list-style-type: none;
font-family: arial;
font-size: 12px;
clear: both;
line-height: 1em;
margin: 0 -1px;
text-align: center;
}
#progress li {
float: left;
padding: 10px 10px 10px 10px;
background: #333;
color: #fff;
position: relative;
border-top: 1px solid #666;
border-bottom: 1px solid #666;
width: 24%;
margin: 0 1px;
}
#progress li:before {
content: '';
border-left: 16px solid #fff;
border-top: 16px solid transparent;
border-bottom: 16px solid transparent;
position: absolute;
top: 0;
left: 0;
}
#progress li:after {
content: '';
border-left: 16px solid #333;
border-top: 16px solid transparent;
border-bottom: 16px solid transparent;
position: absolute;
top: 0;
left: 100%;
z-index: 20;
}
#progress li.active {
background: #555;
}
#progress li.active:after {
border-left-color: #555;
}