Display

Use shorthand display utility classes to quickly change an element's display value.

Notation

Display utility classes can be defined using the format -d-{breakpoint}--{value}. Breakpoints supported are sm, md, lg, and xl.

Target all breakpoints

Display utility classes with no breakpoint defined apply to all screen sizes.

Display ClassValue
-d--nonedisplay: none;
-d--inlinedisplay: inline;
-d--inline-blockdisplay: inline-block;
-d--blockdisplay: block;
-d--tabledisplay: table;
-d--table-celldisplay: table-cell;
-d--table-rowdisplay: table-row;
-d--flexdisplay: flex;
-d--inline-flexdisplay: inline-flex;

Target specific breakpoints

To target a specific breakpoint, add the breakpoint abbreviation to the class. As a mobile first framework, it will apply to that specific breakpoint and up.

ClassValueResult

Special display classes

To target screen readers only or a specific media type (@media screen or @media print), use the below classes.

Display ClassValue
-d---sr--only--noneScreen reader only
-d---d-screen--only--nonedisplay: block;on @media screen, display: none;on @media print.
-d---d-print--only--nonedisplay: none;on @media screen, display: block;on @media print.

Examples #

-d--none -d-xl--inline-flex
-d-sm--none
-d--inline-flex
-d--flex