I want to place text above the rule and to the right of the title, as shown at the bottom of the bottom image.

This is my HTML:
<h2>Heading</h2>
<div class="category"><em>Characters</em></div>
<hr>
(I currently do not have CSS for the "character" class, since I have nothing working.)
I tried to align the text using CSS to float or position, and the closest I got gets a match with the rule, but in the end it shortens it.
Can anyone help?
source
share