set item width in flex container code example Example: flexbox container width of content display: inline-flex;