My h1 Element
<h1>Title Of Element<h1>
The h1 has a width of 200px
h1{width:200px;}
Although the h1 is indeed 200px wide, the text inside does not fully utilize that width.
I expected setting font-size to 100%
h1{font-size:100%;}
However, this only adjusts the font size relative to the default and doesn't affect the h1 container.
I want the font size inside the h1 to adjust dynamically based on the h1's width, as I may change it at times. This means the height of the h1 should also adjust to prevent text clipping.
I am frustrated that this behavior isn't standard for H tags.
There is a property called fit-content which unfortunately does the opposite of what I need.
h1{width: fit-content;}
This causes the h1 to shrink to the text size, whereas I need the text to expand to the h1 size.