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