Flex Layout

Introduction

Flexbox is a one-dimensional CSS layout model designed to distribute space along a single axis—either as a row or a column. It simplifies tasks like centering, spacing, and ordering items, even when their size is unknown or dynamic. To enable Flexbox, set display: flex (or inline-flex) on a container and then control alignment and distribution with a handful of properties.

Flex Container Properties

Flex Item Properties