There are 2 divs, let's call them A and B. A contains the content of a height not known in advance, from 2 lines of text to 3 scrolls of the screen. B is located next to A (side panel) and contains any amount of content of approximately known height, for example, divs from 200px to 300px in height, all too horrible.
It is necessary to balance the block A with the neighboring ones — display so many blocks inside B so that in the end they turn out to be approximately equal (± 150px). The blocks themselves do not equal the height of the task. If there is a solution without js, I would like to see it too.
