How do I give my box a bit of a stretching ability?

Despite the height set to auto, the content spills outside the box to the right instead of stretching the box downwards within its width. How do I fix it?

@nad.chel You’ve set your width to 50%, maybe you can try using a max-width in that case, is it possible for you to share the code with me to better help you ?