I am trying to figure out how to bind DIV columns to some fixed size grid using CSS.
Here's the test page I'm working on: http://mapofemergence.com/test/MoEv2/
What I'm trying to get is the right div (green), somehow tied to the squares of the background grid: when resizing the browser window, the red squares should spread in the middle area, while the green column should βfill inβ the remaining area with the right sides of the page and yet always remain aligned (left) with the grid.
In principle, being the square size of the square, the right green div should have a variable width equal to or greater than a, and in any case insignificant than 2a (in this case, it should return to the width of a, another red square coming from the bottom rows to the top).
here is an image to get a better idea:

(sorry my reputation does not allow hyperlink)
I'm not sure that this can be done using CSS, but I'm sure some of you can help find a solution or workaround. I would not use javascript if possible.
Thanks for your help, s
source share