If the div has a width of 300px, how can I adjust the font size of the text so that it always occupies 100% of the width? The challenge is that the text lengths vary due to dynamic titles generated by PHP. Smaller texts need to have much smaller fonts than longer texts.