Is there a way to scale font-size without using JavaScript? For example if you open the webpage on a 15″ laptop and a container div was 400px wide and the font was defined to fill the entire div. Then you open the website on a 17″ screen and the div is 600px. Is there a way to make the font automatically scale?
In essence its adding a “width: 100%” to text, which you cant do. I would much rather do it without JavaScript because I am already using a lot in the webpage and it becomes messy after a while.
Any help would be appreciated.
Thanks in advance.
Thanks for all your help everyone, but what I ended up doing was just using text-align: justify. It’s not exactly what I wanted, but its a solution to stretch the text. I appreciate all your help.