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