css flex items take width as content code example Example: flexbox container width of content display: inline-flex;