@michael-benjamin Center and right align flexbox elements almost what I want, but with 2 differences:
- Div have to take empty space at left side too (when it be wide)
- Div have to collapse text when there is no empty space around at all.
What I have?
A
is main centered object and BBBBBBBBBBBBBBB
is right object.
This is fine till A
will grow:
What I want?
Is it possible to do with flex/grid/table-tr-td/any other css tricks?
What I tried?
- CSS Positioning Properties - can't stop when grow to
B
- Flex Auto Margins & Invisible Flex Item (DOM element) - invisible item don't give empty space at left side
- CSS Grid Layout -
1fr
don't give empty space at left side