How to make my font in HTML so that when the window expands, the text size also expands. Similar to setting a percentage for text that will occupy a percentage of the size of the field in which it is located.
Here is an illustration of what I would like to do:
#box #text { font-size: 50%; }
Now let's say #box is 200px, #text is 100px. Obviously, I can't just set the patch width for #text , because the #box site will have dynamic width.
javascript jquery html css
Chaim
source share