Reversing children order

If your elements are in reverse order (using say flex-row-reverse or flex-col-reverse), use the divide-x-reverse or divide-y-reverse utilities to ensure the border is added to the correct side of each element.

Responsive

To control the borders between elements at a specific breakpoint, add a {screen}: prefix to any existing divide utility. For example, adding the class md:divide-x-8 to an element would apply the divide-x-8 utility at medium screen sizes and above.

For more information about Tailwind's responsive design features, check out the Responsive Design documentation.

1

2

3

1

2

3

1

2

3

1

2

3

1

2

3

Customizing

Divide width scale

The divide width scale inherits its values from the borderWidth scale by default, so if you'd like to customize your values for both border width and divide width together, use the theme.borderWidth section of your tailwind.config.js file.

// tailwind.config.js

module.exports = {

theme: {

borderWidth: {

default: '1px',

'0': '0',

'2': '2px',

+ '3': '3px',

'4': '4px',

+ '6': '6px',

- '8': '8px',

}

}

}

To customize only the divide width values, use the theme.divideWidth section of your tailwind.config.js file.