You need to create a template with the following functions:
- containing two containers (rows)
- fixed line top
- sizes of the lower sizes to the maximum available vertical space
- the text (font size) inside the bottom container must be dynamically resized to fit the height of the container .
The answer to the first question is simple, but adds it here, because I do not know how the second question does not depend on it.
There are already many questions that ask about how to dynamically resize text in a text field or in input fields. But this question is more specific, because you probably need to count words or something else to fit the size of the container.
Can someone help me with some pointers to an already executed jquery or any other js / css solution?
I am not a web designer and I want to make only one simple web page template that will be used for my texts - I know a bit of css, but not javascript, so I ask for a pointer to any "ready to use", run, if exists .. .
EDIT
Checking for overflow solutions, this answer https://stackoverflow.com/a/166805/ works fine to detect vertical overflow. Now the questions: how to add the above javascript overflow check to the loop, which will change my font to a smaller one.
To better illustrate the attachment of two demo images ... 

cajwine
source share