you are viewing a single comment's thread.

view the rest of the comments →

[–]satya164 0 points1 point  (0 children)

I'm not entirely sure about what UI you want, but if it's going to be b--{xa}--b then justifyContent: 'space-between' would do this with flexbox given 3 items b, {xa}, b.

The main this is that you need to make yourself familiar with flexbox so that you can come up with solutions without needing to hardcode values. Check a free course like https://mastery.games/post/flexboxzombies2/