0

The blue area is flex-container, while the red area is flex-item.
enter image description here

However I want the flex-item size is based on its content width instead of the container width like below purple area:
enter image description here

CodeSandbox
https://codesandbox.io/s/silly-aryabhata-5fgsh?file=/src/App.js

CCCC
  • 4,326
  • 2
  • 11
  • 36

0 Answers0