I've been experimenting with a layout challenge and running into some obstacles.
Two div tags are at the heart of the issue. Div A features an image with a default size of 768 x 400, while Div B displays an image at 1152 x 400. These images are meant to fill 40% and 60% of the screen width, respectively.
My goal is to have these divs span the entire width of the screen and scale proportionally, maintaining their 40%-60% width ratio until the screen size drops below 720px. At that point, the divs should stack vertically, with the image in Div B appearing shorter than that in Div A due to aspect ratio considerations.
I've included an illustration to clarify my objective.
Any help or guidance on this matter would be greatly appreciated!
Thank you,