Max Width

Utilities for controlling the max width of an element


Class
Properties
max-w-screen-sm
max-w-screen-md
max-w-screen-lg
max-w-screen-xl
max-w-screen-xxl
max-w-0
max-w-full
max-w-read
max-w-min
max-w-max

Usage

Use the max-width utilities to set the maximum width of an element.

<div class="max-w-screen-sm"></div>

Readable max width

Set the optimal reading width of an element using the max-w-read utility class.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

<div class="max-w-screen-sm"></div>

Responsive

Responsive variations also exist for each max-width value. Use the .max-w-{breakpoint}-{value} for sm, md, lg, xl, and xxl to any existing width utility.

<div class="max-w-screen-sm max-w-md-screen-xl ..."></div>