As you are working with divs, that could be achieved with css grid layout. Please find below the best guide I found about it.
CSS Grid Guide
CSS Grid also gives a very good responsive result, and it is always a good option in terms of layouts.
Every div you have will be dropped into a cell of your css grid, but you first must specify the columns and rows ...
This feature will become available in Lightning in Spring '20. From the linked release notes:
How: To construct a custom button or link that launches a new record with prepopulated field values, use this sample formula: