` will always occupy 100% width, while the second `
` will have its maximum width limited to 1024px on large screens (`lg`) and above. The `mx-auto` class is used to horizontally center the container.
### 3γColumns
Columns classes are used to implement multi-column layouts.
You can control the number of columns and the spacing between columns.
**Main Classes:**
* `columns-{n}`: Sets the number of columns.
* `space-x-{size}`: Sets the spacing between columns.
| Class Name | CSS Property and Value | Description |
| --- | --- | --- |
| `columns-1` | `columns: 1;` | Sets the number of columns to 1. |
| `columns-2` | `columns: 2;` | Sets the number of columns to 2. |
| `columns-3` | `columns: 3;` | Sets the number of columns to 3. |
| `columns-4` | `columns: 4;` | Sets the number of columns to 4. |
| `columns-5` | `columns: 5;` | Sets the number of columns to 5. |
| `columns-6` | `columns: 6;` | Sets the number of columns to 6. |
| `columns-7` | `columns: 7;` | Sets the number of columns to 7. |
| `columns-8` | `columns: 8;` | Sets the number of columns to 8. |
| `columns-9` | `columns: 9;` | Sets the number of columns to 9. |
| `columns-10` | `columns: 10;` | Sets the number of columns to 10. |
| `columns-11` | `columns: 11;` | Sets the number of columns to 11. |
| `columns-12` | `columns: 12;` | Sets the number of columns to 12. |
| `columns-auto` | `columns: auto;` | Sets the number of columns automatically, adjusting column width based on content. |
| `columns-3xs` | `columns: 16rem; /* 256px */` | Sets the column width to 16rem (256px). |
| `columns-2xs` | `columns: 18rem; /* 288px */` | Sets the column width to 18rem (288px). |
| `columns-xs` | `columns: 20rem; /* 320px */` | Sets the column width to 20rem (320px). |
| `columns-sm` | `columns: 24rem; /* 384px */` | Sets the column width to 24rem (384px). |
| `columns-md` | `columns: 28rem; /* 448px */` | Sets the column width to 28rem (448px). |
| `columns-lg` | `columns: 32rem; /* 512px */` | Sets the column width to 32rem (512px). |
| `columns-xl` | `columns: 36rem; /* 576px */` | Sets the column width to 36rem (576px). |
| `columns-2xl` | `columns: 42rem; /* 672px */` | Sets the column width to 42rem (672px). |
| `columns-3xl` | `columns: 48rem; /* 768px */` | Sets the column width to 48rem (768px). |
| `columns-4xl` | `columns: 56rem; /* 896px */` | Sets the column width to 56rem (896px). |
| `columns-5xl` | `columns: 64rem; /* | |
## Example
[Try it Β»](#)
### 4γPagination
The following classes can help developers better control pagination and column layouts in documents, improving readability and aesthetics of printed output.
**Main Classes:**
* `break-after-{value}`: Controls behavior after pagination.
* `break-before-{value}`: Controls behavior before pagination.
* `break-inside-{value}`: Controls pagination behavior inside elements.
Column 1
Column 2
Column 3
YouTip