Is there a way to determine the length of the content contained inside an h2 element, which changes. So an hr tag can be set to the same length plus some additional width?
so it would look sort of like
I tried some psuedocode to explain what I mean. I would move this to a css rule of course
<h2>SOME RANDOM TITLE LENGTH</h2>
<hr style=width_of_H2_plus_5% />