You can add a pseudo-element containing several inextricable spaces that are underlined. This way you get a real underline instead of a border. However, it will still cross letters like "g".
h1::before {
content:'\a0\a0\a0\a0\a0\a0\a0\a0';
display:block;
position:absolute;
text-decoration:underline;
width:50px;
overflow:hidden;
}
<h1>Headline</h1>
<h1>Another Headline</h1>
Run codeHide result source
share