I am facing an issue with my CSS. I have set the font size of a company name to 12px, where the data is fetched from a database. However, some company names are too long and break the line. I am looking for a solution to dynamically adjust the font size if the text is too long, gradually reducing it to fit in the same line without breaking. Is there any method to achieve this? Your help would be greatly appreciated.
#com_name {
font-size: 12px;
}
<div class="com_name">
<span>Company name: </span><span id="com_name"></span>
</div>