Skip to main content

What does the flex-wrap property do?

flex-wrap controls whether flex items wrap onto a new row (or column) if they do not fit inside the container.

Options:

javascript
flex-wrap: nowrap; /* all items in one line, wrapping is disabled */ flex-wrap: wrap; /* items wrap onto the next line */ flex-wrap: wrap-reverse; /* wrapping in the reverse direction */

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.

What does the flex-wrap property do?: CSS Interview Question