Skip to main content

Divide

Utilities for controlling the border between child elements.

CSS Property:border-width (between children)
Classes:19

Divide Classes

ClassCSS
divide-x-0> :not(:last-child) { border-inline-end-width: 0px; }
divide-x> :not(:last-child) { border-inline-end-width: 1px; }
divide-x-2> :not(:last-child) { border-inline-end-width: 2px; }
divide-x-4> :not(:last-child) { border-inline-end-width: 4px; }
divide-x-8> :not(:last-child) { border-inline-end-width: 8px; }
divide-y-0> :not(:last-child) { border-bottom-width: 0px; }
divide-y> :not(:last-child) { border-bottom-width: 1px; }
divide-y-2> :not(:last-child) { border-bottom-width: 2px; }
divide-y-4> :not(:last-child) { border-bottom-width: 4px; }
divide-y-8> :not(:last-child) { border-bottom-width: 8px; }
divide-x-reverse> :not(:first-child) { border-inline-start-width: var(--tw-divide-x-reverse); }
divide-y-reverse> :not(:first-child) { border-top-width: var(--tw-divide-y-reverse); }
divide-solid> :not(:last-child) { border-style: solid; }
divide-dashed> :not(:last-child) { border-style: dashed; }
divide-dotted> :not(:last-child) { border-style: dotted; }
divide-double> :not(:last-child) { border-style: double; }
divide-none> :not(:last-child) { border-style: none; }
divide-gray-200> :not(:last-child) { border-color: #e5e7eb; }
divide-gray-300> :not(:last-child) { border-color: #d1d5db; }

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[border-width (between children):value]

Responsive Variants

Apply divide utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:divide-x-0
768px+md:md:divide-x-0
1024px+lg:lg:divide-x-0
1280px+xl:xl:divide-x-0
1536px+2xl:2xl:divide-x-0