I am encountering difficulties with a seemingly simple task. Here is what I want to achieve: https://i.stack.imgur.com/z7ITk.png
My goal is to have two red blocks of equal height, even if the content inside them varies in height. Using a table is not ideal due to issues with borders and margins. I have experimented with negative margins as a solution but did not find success.
After abandoning the table approach, I attempted to create the desired space between the blocks using outline, background-clip, and background-offset properties. However, this method was not foolproof and seemed overly complex for such a basic requirement.
Another tactic I tried was setting fixed heights for the red blocks and making adjustments with media queries for responsiveness. This approach caused problems with overflow and excessive padding at the bottom due to uncertain content sizes.
Additionally, I prefer to avoid flexbox due to compatibility concerns and JavaScript as a workaround for CSS issues.
Any suggestions or ideas would be greatly appreciated. Thank you!