I'm creating a header, and I want the central logo to orient all of the other elements to the left and right of it. And I want the central logo to remain in the exact center of the header the entire time.
The problem comes when some of the elements in the header are not as wide as other elements, so I can't use justify-content: center
because that aligns all the elements in exactly the center of the header, but the central header gets pushed too far either left or right.
What I want is demonstrated in my beautiful MS painting below. Note how the space between the darker blue elements from the red div's borders are on the same to the left or right.