Dev Tools
NextJs Demo
AboutContact
ss

Display

Display

The display CSS property sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex.

Formally, the display property sets an element's inner and outer display types. The outer type sets an element's participation in flow layout; the inner type sets the layout of children. Some values of display are fully defined in their own individual specifications; for example the detail of what happens when display: flex is declared is defined in the CSS Flexible Box Model specification.

Options

block

Preview

Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis natus eveniet veritatis aperiam veniam nobis culpa commodi vero nostrum, voluptas temporibus quod aspernatur rerum animi alias, ad incidunt odit tempora.

Code

display: block;