Looking to create a layout with two side-by-side divs of equal width - one containing an image and the other dynamic text that can vary in height from 400px to 550px based on input. The goal is for the image to align flush at the top and bottom with the text box, all within a fluid container element for responsiveness.
Desired Outcome
https://i.sstatic.net/kp2u8.gif
Currently using floats to line up elements, but the image falls short:
https://i.sstatic.net/HKGVf.gif
Attempted setting the image as a background-image with CSS properties, but encountering issues with maintaining alignment when resizing browser due to aspect ratio changes.
Hoping to find a solution without resorting to Javascript.