Skip to main content

Max-Width

Sizing

Utilities for setting the maximum width of an element.

ClassProperties
ob-max-w-0max-width: 0
ob-max-w-nonemax-width: none
ob-max-w-xsmax-width: 20rem
ob-max-w-smmax-width: 24rem
ob-max-w-mdmax-width: 28rem
ob-max-w-lgmax-width: 32rem
ob-max-w-xlmax-width: 36rem
ob-max-w-2xlmax-width: 42rem
ob-max-w-3xlmax-width: 48rem
ob-max-w-4xlmax-width: 56rem
ob-max-w-5xlmax-width: 64rem
ob-max-w-6xlmax-width: 72rem
ob-max-w-7xlmax-width: 80rem
ob-max-w-fullmax-width: 100%
ob-max-w-minmax-width: min-content
ob-max-w-maxmax-width: max-content
ob-max-w-fitmax-width: fit-content
ob-max-w-prosemax-width: 65ch
ob-max-w-screen-xlmax-width: var(--ob-breakpoints-xl) => /* 1200px */
ob-max-w-screen-lgmax-width: calc(var(--ob-breakpoints-lg) + 1px) => /* 992px */
ob-max-w-screen-mdmax-width: calc(var(--ob-breakpoints-md) + 1px) => /* 768px */
ob-max-w-screen-smmax-width: calc(var(--ob-breakpoints-sm) + 1px) => /* 480px */
ob-max-w-screen-xsmax-width: 320px