I've come across a specific design which I can't find any perfect solution for. My issue is the following:
My page is split in half vertically (Left Pannel / Right Pannel, taking the full page height), and in these pannels there will be pairs of divs that shall always be aligned horizontally. For instance, A and A' must be aligned. Even if the divs sizes change (see B and B', or C and C') they shall remain aligned.
I've tweaked a lot and found some decent solutions, the best one being 'faking' the Left and Right pannel, having a single div instead with a gradient background split in half. But the issue is that I need the divs architecture to be clean, otherwise I won't be able, later on, to do things like 'When you click on the Left Pannel, xxxx happens', or 'Disable the Right pannel by blocking all inputs in it' etc.
I've played with tables as well, but my horizontal divs appear dynamically (at first the Left / Right pannels are empty) and I couldn't force the table to use the full page height without the first few cells being abnormally big to fill the full height of their parent.
Is there any clean solution to my problem? It it helps, I'm using material-ui along with React.
Thanks a lot!