Back to Topics

Flexbox Layout

What is Flexbox?

Flexbox (Flexible Box Layout) is a powerful 1D layout model in CSS. It allows you to align and distribute space among items in a container, even when their size is unknown or dynamic.

Core Properties

Example Syntax

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
View My Practice Work