Currently, I am working on customizing my subheadings to fit within a 960 grid layout design.
The challenge is that the headings need to have a trailing decoration (in this scenario, two lines aligned at the bottom). To achieve this, I created a div for the title and another div next to it for the decoration, both inside the fixed-width container.
I am looking for a way to ensure that when the heading div expands, the accompanying div automatically resizes as well. Any suggestions on how to accomplish this?
For better understanding, here is an example:
<h1 class="fixed-width">
<span class="auto-width">text expands her...</span>
<span class="auto-decor-width">this is the text decoration</span>
</h1>
Additionally, you can refer to the image below for a visual representation of what I am working towards: