Skip to main content

Display

Utilities for controlling the display box type of an element.

CSS Property:display
Classes:21

Display Classes

ClassCSS
blockdisplay: block;
inline-blockdisplay: inline-block;
inlinedisplay: inline;
flexdisplay: flex;
inline-flexdisplay: inline-flex;
tabledisplay: table;
inline-tabledisplay: inline-table;
table-captiondisplay: table-caption;
table-celldisplay: table-cell;
table-columndisplay: table-column;
table-column-groupdisplay: table-column-group;
table-footer-groupdisplay: table-footer-group;
table-header-groupdisplay: table-header-group;
table-row-groupdisplay: table-row-group;
table-rowdisplay: table-row;
flow-rootdisplay: flow-root;
griddisplay: grid;
inline-griddisplay: inline-grid;
contentsdisplay: contents;
list-itemdisplay: list-item;
hiddendisplay: none;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[display:contents][display:list-item]

Responsive Variants

Apply display utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:block
768px+md:md:block
1024px+lg:lg:block
1280px+xl:xl:block
1536px+2xl:2xl:block