Forum Academy Marketplace Showcase Pricing Features

How to dynamically, vertically stretch an HTML element?

I have a dynamic HTML element that displays paragraphs of text. Sometimes the text is short, sometimes the text in the HTML element is long.

The problem I am having is that the height HTML element does not adjust to the length of the text it is displaying. If the text is too long, it will just cut off the text in it and make it scrollable (see image).

How could I make the HTML element vertically stretch itself?