Loading tutorials
display: flex on a container. Every other Flexbox property depends on the two axes described here.2 min readdisplay: flex to make a flex container. It also assumes you know that a container has a main axis and a cross axis.2 min readdisplay: flex turns a container's direct children into flex items. It also assumes you know the main axis runs along flex-direction, which is horizontal by default.2 min readdisplay: flex, know that the main axis follows flex-direction, and are comfortable with CSS selectors and the box model. Here you will learn how align-items places items on the cross axis, which is the axis perpendicular to the main axis2 min readjustify-content and gap. Here you will learn how flex-wrap moves items onto new lines instead of squeezing them.2 min readdisplay: flex, that you know the main axis and cross axis, and that you are comfortable with rem and px units. You will replace margin-based spacing with the gap property.2 min readdisplay: flex, know the main axis and cross axis, and understand width, rem and percentages. Here you will learn what flex-basis does and how it differs from width.2 min readdisplay: flex. You should also know what the main axis is and what flex-basis does.2 min readflex-basis sets a starting size, and how flex-grow shares extra space. Here you will see what happens in the opposite case, when items are too wide for the container.3 min readflex-basis sets an item's starting size, that flex-grow shares leftover space, and that flex-shrink handles overflow. Here you will combine those three into the flex shorthand and learn the values you will use most.2 min readalign-items aligns items on the cross axis, and the basic box model. Here you will learn how one item can ignore the container's cross-axis alignment.2 min readdisplay: flex, the main and cross axes, align-items, and flex-wrap. Here you will learn what align-content does and why it often seems to do nothing.2 min readdisplay: flex, know the main axis from the cross axis, and understand justify-content. You should also know the box model, because auto margins are ordinary margins with a special value.2 min readflex-direction and flex-wrap. The order property changes where an item is drawn. It does not change where the item sits in the HTML.3 min readflex-shrink: 1, and how min-width: 0 fixes it. It assumes you know display: flex, the main axis, and the flex shorthand from earlier chapters.2 min readjustify-content, align-items, flex-wrap, gap and the flex shorthand. Here you combine them into four layouts you will build often.2 min readdisplay: flex, the main and cross axes, flex-wrap, and the flex shorthand from earlier chapters. You do not need prior Grid experience. The examples use only a few Grid properties.2 min read