How to display the flex unit?

how to display (highlighted in red) flex unit as a highlighted blue.
width is equal to the content.
April 4th 20 at 00:49
2 answers
April 4th 20 at 00:51
solved: aling-item: flex-start/flex-end parent.
April 4th 20 at 00:53
display: inline-flex but actually from the code depends.

Find more questions by tags CSSFlexbox