Basic structure of a flex grid.
flex-wrap: nowrap;
The nowrap setting tells the divs not to break into new lines. This way, the elements automatically resize when the available space decreases.
Basic structure of a flex grid.
flex-wrap: wrap;
The wrap property allows elements to break into new lines, preserving the initial dimensions of the divs.
Basic structure of a flex grid.
flex-wrap: wrap; + justify-content: flex-end