I need help with a layout featuring three containers - Total (with a red border), Left (yellow border containing an image), and Right (blue border containing text).
Left is set to approximately 30% width with float: left, while Right is set to 70% width with float: right.
My goal is to make both Left and Right containers have the same height as Total, while still allowing Total's height to be dependent on its content. This way, I can easily center the content of Left and Right vertically within the middle of Total using margin-top and margin-bottom properties.
Two challenges I'm facing: 1) Setting a fixed height on Total fixes the height issue, but causes content to spill over when the screen is narrowed. 2) Here's a video showcasing the elements to better illustrate what I'm trying to achieve: . I would prefer to accomplish this without using JavaScript.