Complete the code to allow flex items to wrap onto multiple lines.
.container {
display: flex;
flex-wrap: [1];
}The flex-wrap property controls whether flex items wrap onto multiple lines. The value wrap allows wrapping.
Complete the code to prevent flex items from wrapping.
.menu {
display: flex;
flex-wrap: [1];
}The value nowrap prevents flex items from wrapping and keeps them in a single line.
Fix the error in the flex container to wrap items in reverse order.
.gallery {
display: flex;
flex-wrap: [1];
}The value wrap-reverse wraps flex items onto multiple lines in reverse order.
Fill both blanks to create a flex container that wraps items and aligns them to the start.
.flexbox {
display: [1];
flex-wrap: [2];
justify-content: flex-start;
}Use display: flex; to create a flex container and flex-wrap: wrap; to allow wrapping.
Fill all three blanks to create a flex container that wraps items in reverse and centers them horizontally.
.container {
display: [1];
flex-wrap: [2];
justify-content: [3];
}Use display: flex; to create a flex container, flex-wrap: wrap-reverse; to wrap items in reverse order, and justify-content: center; to center items horizontally.