How about a linear gradient where it will be easy to control the color, size and distance within one element:
.underline {
position: relative;
font-size:28px;
background:
linear-gradient(yellow,yellow)
left 0 bottom 2px/
100% 2px
no-repeat;
}
<div style="width:150px;text-align:center"><span class="underline">Sprouted Bread</span></div>
Run codeHide result, border-bottom , , , , :
.underline {
position: relative;
font-size:28px;
border-bottom:2px solid yellow;
}
<div style="width:150px;text-align:center"><span class="underline">Sprouted Bread</span></div>
Hide result