how to adjust flex items width according to its content code example Example: flexbox container width of content display: inline-flex;