I would like to create a series of containers in the same size but with different contents, making such that the contained text reduces its font size if it would not fit the container otherwise.

Is there any way to automatically reduce font size to avoid overflowing of the container?

This question is a duplicate of Fit text into given box by adjusting the fontsize.

Browse other questions tagged or ask your own question.