If you place elements onto/into a rectangle, the rectangle expands synchronously with the height of the elements within. This is common and expected behaviour.
Of course this behaviour has unavoidable limits. If the amount of text is too different, you have to think about adding breakpoints.
(… and please, please don‘t use justified text in the web! Since hyphenation isn‘t widely supported by browsers, this looks terrible!)
Thanks a lot.