I am in search of a solution for creating consistent spacing between headlines of varying lengths and the end of the row. My goal is to fill this space with something like a dotted border, but I have encountered compatibility issues with different browsers. The most successful method so far has been using display:block ruby on Firefox, along with adding a 100% width span after the headline. It is important to note that I do not want the headlines to have a set width.
I have included an image showcasing the desired outcome, which should be achieved regardless of the length of the headline.
Image example
I have experimented with flex, inline, inline-block, separating content into separate divs, keeping content in the same div, and various other approaches in an attempt to find a suitable solution.