flow-wrap: nowrap; /* forces flex container to display all flex items in one line */
flow-wrap: wrap; /* allows flex container to display flex items in multiple lines, direction is defined by flex-direction */
flow-wrap: wrap-reverse; /* the same as “wrap”, opposite to direction defined by flex-direction */
flow-wrap: wrap; /* allows flex container to display flex items in multiple lines, direction is defined by flex-direction */
flow-wrap: wrap-reverse; /* the same as “wrap”, opposite to direction defined by flex-direction */
So if we have style definitions like:
section {
border: 1px solid #000000;
display: flex;
flex-wrap: wrap;
}
div {
background-color: #C0C0C0;
margin: 7px;
flex-grow: 1;
}
border: 1px solid #000000;
display: flex;
flex-wrap: wrap;
}
div {
background-color: #C0C0C0;
margin: 7px;
flex-grow: 1;
}
The result will change, depending on browser window width:
1. For section has a 760px of width:
2. section has a 480px of a width:
Brak komentarzy:
Prześlij komentarz