There should be a display flex option for that. I think it was justify-content or align-items or something like that. But only if you are using display flex. Maybe something like this: https://css-tricks.com/almanac/properties/a/align-items/
By the way, I also have a DnD template I made available for others. Feel free to borrow ideas from it if you find it useful. I built it with a tool though, so maybe the source code might be more useful.