I have a single div element on my website that includes an image and text content, each with their own unique classes. These elements are positioned side by side within a specific margin. I am attempting to prevent the text content from overflowing into other sections of the page. My goal is to adjust the height of the text content based on the height of the image, creating a dependency between the two elements. How can this be achieved?