I would like to know how I would be able to set a min and max font-size for a fixed width div that accepts variable text. I looked at a similar question but it didn't provide a plain Javascript approach.
If the text is short the font-size would be 12px, if it's multi-line it can get down to a minimum of 8px for example. How would I be able to accomplish this in plain javascript?
Thank you!