how to make flex only width of the content code example Example: flexbox container width of content display: inline-flex;