I wan't to set line full width, from text on left side.
If text have one word with 5 letters to be like this:
and if text have 3 words to be like this:
Can someone help me, here is what I tried to solve my problem, but it's not semantic useful
https://jsfiddle.net/xoty99bc/
<h3>
Lorem
</h3><div class"line">
</div>
h3{
display:inline-block;
width:20%;
}
div{
display:inline-block;
height:2px;
width:80%;
background-color:red;
}