The problem is. The big box is the parent div in which there is a smaller div (smaller box) that contains an image. The rest of the bigger div should be filled with text (red/pink lines). Text is formatted in paragraphs (<p> .... </p> <p> .... </p>) and there are some links within text.
Sizes of divs are dynamic, they change when window size changes. So I want the font size to change to fit the main div. Is there any solution? I would really appreciate it.
Thanks for your response, but I have to admit it, it does not work the way I would like. This fits the last row of each paragraph, but I would like to fit whole text into the div "taust". Because if I change my browser's window size, the size of the div "taust" changes, but the text size does not change, and breaks out of the div, but I would like the text to fit the div, yet I would not like to stretch my div. So I would like to manipulate the font size in order to fit it in the div. I think it is not possible just using html and/or css, that's why I would like to know, how to use the script you mentioned.
Still, thanks for your time and effort! Seems like no-one is able to help me