In general, you need to impose divs so that they are equidistant from each other, all have a fixed width and height (as in the attached image). The problem is that the information in these blocks is derived from the database using php and, accordingly, you need to apply one CSS class for all 3 blocks (shove one block into the loop and further depending on how many materials are in the database, output the required number in blocks). If in the CSS class we set the indent to the right for example 20px, then the 3rd block will move down due to the lack of space on the page width.
If the page were static, then it would be possible to make a wrap to the left at the Left Block and at the Right at the right, and to make an equal indentation on both sides at the central unit depending on the page width. But here it is necessary to prescribe 3 classes for 3 blocks, respectively, but I need to fit everything in one class.
I hope I described the essence of the problem in detail.