I am running into a few situations where I have a word that is larger than its containing div. Take a look at the screenshot below:
What I would like to happen is when a word is too large to fit within its containing div it would reduce the size until it fits. Using the screenshot above I would want it to look like this when resized:
How do I do this?
I read about Viewport Sized Typography but it doesn't scale in relation to the div. How do I create scalable fonts in relation to the div?
I prefer a CSS only solution but if JS is the only way then I will accept that answer.