# Divider (`.z-divider`)

> Horizontal rules and small or vertical dividers for separating content.

- **Kind:** css
- **Category:** layout

## CSS Variables

| Variable | Default | Scope | Affects | Description |
| --- | --- | --- | --- | --- |
| `--z-divider-small-border-color` | `var(--z-border)` | `.z-divider-small` | `border-top` | Line color of the small divider. |
| `--z-divider-small-border-color-o` | `var(--z-border-o)` | `.z-divider-small` | `border-top` | Opacity applied to the small divider's line color. |
| `--z-divider-small-width` | `100px` | `.z-divider-small` | `width` | Width of the small divider's line. |
| `--z-divider-vertical-border-color` | `var(--z-border)` | `.z-divider-vertical` | `border-inline-start` | Line color of the vertical divider. |
| `--z-divider-vertical-border-color-o` | `var(--z-border-o)` | `.z-divider-vertical` | `border-inline-start` | Opacity applied to the vertical divider's line color. |
| `--z-divider-vertical-height` | `100px` | `.z-divider-vertical` | `height` | Height of the vertical divider. |
| `--z-hr-color` | `var(--z-border)` | `.z-hr` | `border-color` | Line color of a horizontal rule (`hr.z-hr`). |
| `--z-hr-color-o` | `var(--z-border-o)` | `.z-hr` | `border-color` | Opacity applied to the horizontal rule's line color. |

## CSS Classes

| Class | Role | Applies to | Description |
| --- | --- | --- | --- |
| `.z-divider` | `root` | `.z-divider` | Base reset for any element whose class contains `z-divider`: no border, 1px height. |
| `.z-divider-small` | `modifier` | `.z-divider` | Short centered horizontal rule, 100px wide by default. |
| `.z-divider-vertical` | `modifier` | `.z-divider` | Vertical rule, 100px tall by default, centered horizontally. |
| `.z-hr` | `element` | `.z-divider` | Full-width horizontal rule for `hr` elements. |

## Notes

- Use `hr.z-hr` for a full-width horizontal rule; any element with a `z-divider-*` class gets the 1px border reset.
- The small divider draws its line with an `::after` pseudo-element.

## Guides

- [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md)
- [Translating Components](https://next.0build.dev/docs/guides/i18n.md)
- [Icon Resolution](https://next.0build.dev/docs/guides/icons.md)
- [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md)
- [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md)
- [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md)
- [Utilities](https://next.0build.dev/docs/guides/utilities.md)
- [Runtime](https://next.0build.dev/docs/guides/runtime.md)
