In a directory site
D, E, F are post type entries (Wordpress) fetched in the B grid, and they are odered by their like counts, so their order is subject to change.
G, H, I are ads in column C, and they ideally should be horizontally "anchored" to the post entries, to achieve very related ads.
Meaning that if the order of the post entries in the grid changes to FDE top to bottom, then the order of the ads in their column should change accordingly to IGH, top to bottom.
Is there any pure CSS way to achieve this, or what would be the Javascript fix?
I was also told to keep the ads and the post entries in the same column, but that reduces styling possibilities (and overall possibilities), so I would prefer to keep them in 2 separate columns.
I do have the possibility to add custom selectors to both the individual ads and post entries, on demand.
Thanks!
Update: additional detail - the number of the elements in both columns is increasing with new elements added.
