display

The CSS property that sets how an element takes part in layout, such as block, inline, flex, grid or none.

In more detail

Changing it usually triggers layout. Its outer value decides how the box sits among siblings (block starts on a new line, inline flows within text), and its inner value decides how children are laid out (flow, flex or grid).

Related terms

Taught in

References