Skip to main content
An official website of the United States government

Display

Control the position and display characteristics of an item.

Utility Modules


Display

Sets whether an element is treated as a block or inline box and the layout used for its children.

Mixins and Functions

UtilityMixinExample
.display-valueu-display(value)@include u-display('block')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
displayTrueNone0.28 KB1.5 KB

The display utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Overflow

Sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction.

Mixins and Functions

UtilityMixinExample
.overflow-valueu-overflow(value)@include u-overflow('scroll')
.overflow-x-valueu-overflow-x(value)@include u-overflow-x('hidden')
.overflow-y-valueu-overflow-y(value)@include u-overflow-y('visible')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
overflowFalseNone0.09 KB0.46 KB

The overflow utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Pinning

Position an item absolutely to the specified side.

Mixins and Functions

UtilityMixinExample
.pin-valueu-pin(value)??HOWTOPINMULTIPLE??

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
pinFalseNone0.06 KB0.35 KB

The pinning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Position

Sets how an element is positioned in the document.

Mixins and Functions

UtilityMixinExample
.position-valueu-position(value)@include u-position('relative')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
positionFalseNone0.04 KB0.21 KB

The positioning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Relative position (bottom)

Sets how an element is positioned in the document relative to the bottom of the document.

Mixins and Functions

UtilityMixinExample
.bottom-unitsu-bottom(units)@include u-bottom('auto')

The relative positioning utilities only support a subset of the spacing tokens: neg-3, neg-205, neg-2, neg-105, neg-1, neg-05, neg-2px, neg-1px, 0, 1px, 2px, 1, 105, 2, 205, 3, full, and auto.

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
bottomFalseNone0.18 KB0.96 KB

The relative positioning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Relative position (left)

Sets how an element is positioned in the document relative to the left edge of the document.

Mixins and Functions

UtilityMixinExample
.left-unitsu-left(units)@include u-left(-2px)

The relative positioning utilities only support a subset of the spacing tokens: neg-3, neg-205, neg-2, neg-105, neg-1, neg-05, neg-2px, neg-1px, 0, 1px, 2px, 1, 105, 2, 205, 3, full, and auto.

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
leftFalseNone0.08 KB0.44 KB

The relative positioning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Relative position (right)

Sets how an element is positioned in the document relative to the right edge of the document.

Mixins and Functions

UtilityMixinExample
.right-unitsu-right(units)@include u-right('full')

The relative positioning utilities only support a subset of the spacing tokens: neg-3, neg-205, neg-2, neg-105, neg-1, neg-05, neg-2px, neg-1px, 0, 1px, 2px, 1, 105, 2, 205, 3, full, and auto.

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
rightFalseNone0.09 KB0.47 KB

The relative positioning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Relative position (top)

Sets how an element is positioned in the document relative to the top of the document.

Mixins and Functions

UtilityMixinExample
.top-unitsu-top(units)@include u-top('05')

The relative positioning utilities only support a subset of the spacing tokens: neg-3, neg-205, neg-2, neg-105, neg-1, neg-05, neg-2px, neg-1px, 0, 1px, 2px, 1, 105, 2, 205, 3, full, and auto.

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
topFalseNone0.07 KB0.4 KB

The relative positioning utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.


Z-index

Sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a larger z-index cover those with a smaller one.

Mixins and Functions

UtilityMixinExample
.z-valueu-z(value)@include u-z(300)@include u-z('bottom')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
z-indexFalseNone0.04 KB0.22 KB

The z-index utility classes have not been modified from the U.S. Web Design System (USWDS). Refer to the USWDS Display utility page for a complete listing of classes.