Sizing

Max Width

Utilities for sets the maximum width of an element.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
max-width-nonemax-width: none
max-width-fullmax-width: 100%
max-width-xxxsmax-width: 12rem
max-width-xxsmax-width: 16rem
max-width-xsmax-width: 20rem
max-width-smmax-width: 24rem
max-width-mdmax-width: 28rem
max-width-lgmax-width: 32rem
max-width-xl-1max-width: 36rem
max-width-xl-2max-width: 42rem
max-width-xl-3max-width: 48rem
max-width-xl-4max-width: 56rem
max-width-xl-5max-width: 64rem
max-width-xl-6max-width: 72rem
classcss
max-width-screen-smmax-width: 640px
max-width-screen-mdmax-width: 768px
max-width-screen-lgmax-width: 1024px
max-width-screen-1kmax-width: 1280px
max-width-screen-2kmax-width: 1920px
max-width-screen-4kmax-width: 3840px
max-width-screen-8kmax-width: 7680px

Usage

<div class="max-width-lg">
...
</div>
HTML
.dummy {
@extend
.max-width-lg;
}
SCSS