Here is an example to consider: (live demo)
Sample HTML:
<div>
<p>
<strong>Stack</strong>
<span>Overflow</span>
</p>
</div>
CSS:
p {
background-color: #aaa;
}
span {
background-color: #777;
}
Is there a way to adjust the <span>
width to fill all available space?
Please note: <strong>
and <span>
should remain on the same line.