News for hackers. Stuff that matters.
Re:SwiftUI for Mac 2024 by robin_reala on Thursday August 22, 2024 @08:19AM (#41319447)
Assuming your div has a class of outer it’s:

.outer { display: flex; justify-content: space-between; align-items: center; }

…and that’s it. (This is assuming your items are of equal width of course. It gets a little bit more complicated if not.)

Re:SwiftUI for Mac 2024 by meindnoch on Thursday August 22, 2024 @09:33AM (#41320099)
I've literally told you the items can be of arbitrary width and height. `space-between` won't keep the middle item centered.