I am looking for this with CSS:

and this is what I have:
.breadcrumb { list-style: none; overflow: hidden; font: 18px Helvetica, Arial, Sans-Serif; margin: 0; padding: 0; } .breadcrumb li { float: left; } .breadcrumb li a { border: 1px solid #c00; color: black; text-decoration: none; padding: 10px 0 10px 55px; background: #fff; position: relative; display: block; float: left; } .breadcrumb li a:after { content: " "; display: block; width: 0; height: 0; border-top: 50px solid transparent; border-bottom: 50px solid transparent; border-left: 30px solid #fff; position: absolute; top: 50%; margin-top: -50px; left: 100%; z-index: 2; } .breadcrumb li a:before { content: " "; display: block; width: 0; height: 0; border-top: 50px solid transparent; border-bottom: 50px solid transparent; border-left: 30px solid red; position: absolute; top: 50%; margin-top: -50px; margin-left: 1px; left: 100%; z-index: 1; } .breadcrumb li:first-child a { padding-left: 10px; } .breadcrumb li a:hover { background: hsla(34, 85%, 25%, 1); } .breadcrumb li a:hover:after { border-left-color: hsla(34, 85%, 25%, 1) !important; } .breadcrumb li:last-child a { border-right: 1px solid red; } .breadcrumb li:last-child a:before { border-left: 0 solid transparent; }
<ul class="breadcrumb"> <li><a href="#">Home</a></li> <li><a href="#">Vehicles</a></li> </ul>
Questions:
- It is not possible to correctly display the correct side borders.
- It is impossible to get the correct border of the last element to be normal (and not a chevron).
- It is not possible to obtain a hover state due to correct lateral boundaries.
source share