You can do that in two ways, either by wrapping the text in a span
element and assigning the border-bottom
to span
else you can use CSS positioning, by using absolute
on the :before
and relative
to a
Demo (Using nested span
elements)
Demo (Using CSS Positioning)
a.bcrmb {
color:#777;
border-bottom:3px solid #777;
margin-right:3px;
position: relative;
margin-right: 15px;
}
a.bcrmb + .bcrmb:before {
content:"/";
margin-right:6px;
border-bottom:0;
position: absolute;
left: -10px;
}
Also make sure you use text-decoration: none;
, you aren't using that