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

Height and Width

Set the dimensions of an item.

Utility Modules


Height

Set the height of an element.

Mixins and Functions

UtilityMixinExample
.height-unitsu-height(units)@include u-height('card')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
heightFalseNone0.11 KB0.6 KB
Class name
Estimated computed value
.height-auto
auto
.height-0
0
.height-1px
1px
.height-2px
2px
.height-05
4px
.height-1
8px
.height-105
12px
.height-2
16px
.height-205
20px
.height-3
24px
.height-4
32px
.height-5
40px
.height-6
48px
.height-7
56px
.height-8
64px
.height-9
72px
.height-10
80px
.height-15
120px
.height-card
160px
.height-card-lg
240px
.height-mobile
320px
.height-full
100%
.height-viewport
100vh

Width

Set the width of an element.

Mixins and Functions

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

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
widthTrueNone0.56 KB3 KB
Class name
Estimated computed value
.width-auto
auto
.width-0
0
.width-1px
1px
.width-2px
2px
.width-05
4px
.width-1
8px
.width-105
12px
.width-2
16px
.width-205
20px
.width-3
24px
.width-4
32px
.width-5
40px
.width-6
48px
.width-7
56px
.width-8
64px
.width-9
72px
.width-10
80px
.width-15
120px
.width-card
160px
.width-card-lg
240px
.width-mobile
320px
.width-mobile-lg
480px
.width-tablet
640px
.width-tablet-lg
880px
.width-desktop
1024px
.width-desktop-lg
1200px
.width-widescreen
1400px
.width-full
100%

Maximum Height

Set the maximum height of an element.

Mixins and Functions

UtilityMixinExample
.maxh-unitsu-maxh(units)@include u-maxh('screen')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
max-heightFalseNone0.12 KB0.65 KB
Class name
Estimated computed value
.maxh-none
none
.maxh-05
4px
.maxh-1
8px
.maxh-105
12px
.maxh-2
16px
.maxh-205
20px
.maxh-3
24px
.maxh-4
32px
.maxh-5
40px
.maxh-6
48px
.maxh-7
56px
.maxh-8
64px
.maxh-9
72px
.maxh-10
80px
.maxh-15
120px
.maxh-card
160px
.maxh-card-lg
240px
.maxh-mobile
320px
.maxh-mobile-lg
480px
.maxh-tablet
640px
.maxh-tablet-lg
880px
.maxh-viewport
100vh

Maximum Width

Set the maximum width of an element.

Mixins and Functions

UtilityMixinExample
.maxw-unitsu-maxw(units)@include u-maxw('card-lg')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
max-widthFalseNone0.13 KB0.72 KB
Class name
Estimated computed value
.maxw-none
none
.maxw-05
4px
.maxw-1
8px
.maxw-105
12px
.maxw-2
16px
.maxw-205
20px
.maxw-3
24px
.maxw-4
32px
.maxw-5
40px
.maxw-6
48px
.maxw-7
56px
.maxw-8
64px
.maxw-9
72px
.maxw-10
80px
.maxw-15
120px
.maxw-card
160px
.maxw-card-lg
240px
.maxw-mobile
320px
.maxw-mobile-lg
480px
.maxw-tablet
640px
.maxw-tablet-lg
880px
.maxw-desktop
1024px
.maxw-desktop-lg
1200px
.maxw-widescreen
1400px
.maxw-full
100%

Minimum Height

Set the minimum height of an element.

Mixins and Functions

UtilityMixinExample
.minh-unitsu-minh(units)@include u-minh('screen')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
min-heightFalseNone0.13 KB0.72 KB
Class name
Estimated computed value
.minh-none
none
.minh-05
4px
.minh-1
8px
.minh-105
12px
.minh-2
16px
.minh-205
20px
.minh-3
24px
.minh-4
32px
.minh-5
40px
.minh-6
48px
.minh-7
56px
.minh-8
64px
.minh-9
72px
.minh-10
80px
.minh-15
120px
.minh-card
160px
.minh-card-lg
240px
.minh-mobile
320px
.minh-mobile-lg
480px
.minh-tablet
640px
.minh-tablet-lg
880px
.minh-full
100%
.minh-viewport
100vh

Minimum Width

Set the minimum width of an element.

Mixins and Functions

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

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
min-widthFalseNone0.07 KB0.4 KB
Class name
Estimated computed value
.minw-none
none
.minw-05
4px
.minw-1
8px
.minw-105
12px
.minw-2
16px
.minw-205
20px
.minw-3
24px
.minw-4
32px
.minw-5
40px
.minw-6
48px
.minw-7
56px
.minw-8
64px
.minw-9
72px
.minw-10
80px
.minw-15
120px

Aspect Ratio

Set the aspect ratio of an element.

Mixins and Functions

UtilityMixinExample
.add-aspect-ratiou-add-aspect(ratio)@include add-aspect('16x9')

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
add-aspectFalseNone0.08 KB0.44 KB
Class name
Estimated computed value
.add-aspect-9x16
.add-aspect-1x1
.add-aspect-4x3
.add-aspect-16x9
.add-aspect-2x1

Circle

Set an element to be a circle of specfic dimensions.

Mixins and Functions

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

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
circleFalseNone0.19 KB1 KB
Class name
Estimated computed value
.circle-2px
2px
.circle-05
4px
.circle-1
8px
.circle-105
12px
.circle-2
16px
.circle-205
20px
.circle-3
24px
.circle-4
32px
.circle-5
40px
.circle-6
48px
.circle-7
56px
.circle-8
64px
.circle-9
72px
.circle-10
80px
.circle-15
120px
.circle-card
160px
.circle-card-lg
240px
.circle-mobile
320px

Square

Set an element to be a square of specfic dimensions.

Mixins and Functions

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

Utility Classes

Utility module usage information
Module nameAre responsive modifiers turned on?Active state modifiersGzip file sizeNon-gzip file size
squareFalseNone0.14 KB0.73 KB
Class name
Estimated computed value
.square-2px
2px
.square-05
4px
.square-1
8px
.square-105
12px
.square-2
16px
.square-205
20px
.square-3
24px
.square-4
32px
.square-5
40px
.square-6
48px
.square-7
56px
.square-8
64px
.square-9
72px
.square-10
80px
.square-15
120px
.square-card
160px
.square-card-lg
240px
.square-mobile
320px