Skip to main content

Layout

Grid

Responsive container

Use the responsive-container class to apply responsive horizontal margins and a max-width that fits our layout grid.

<div class="responsive-container my-20">
<div class="rounded bg-red-2 h-96"></div>
</div>

Responsive grid

Use the responsive-grid class to create responsive grid layouts. You can customize the number of columns by adding grid-cols-* utilities (and responsive variants). You can adjust the column and row spans for grid elements with the col-span-* and row-span-* utilities and their responsive variants.

Loading...
Code editor

Combine responsive-grid and responsive-container for fully responsive grid layouts.

Loading...
Code editor

12-column grid

Loading...
Code editor

12-column grid with variable column widths

Loading...
Code editor

3-column grid

Loading...
Code editor

2-column grid

Loading...
Code editor

Padding

Loading...
Code editor

Margin

Loading...
Code editor

Size

Width

Loading...
Code editor

Height

Loading...
Code editor