--- id: 587d78ad367417b2b2512afa title: Use the flex-wrap Property to Wrap a Row or Column challengeType: 0 videoUrl: 'https://scrimba.com/p/pVaDAv/cQv9ZtG' forumTopicId: 301114 dashedName: use-the-flex-wrap-property-to-wrap-a-row-or-column --- # --description-- CSS flexbox has a feature to split a flex item into multiple rows (or columns). By default, a flex container will fit all flex items together. For example, a row will all be on one line. However, using the `flex-wrap` property tells CSS to wrap items. This means extra items move into a new row or column. The break point of where the wrapping happens depends on the size of the items and the size of the container. CSS also has options for the direction of the wrap:
nowrap
: this is the default setting, and does not wrap items.wrap
: wraps items from left-to-right if they are in a row, or top-to-bottom if they are in a column.wrap-reverse
: wraps items from right-to-left if they are in a row, or bottom-to-top if they are in a column.