Nearby lessons

54 of 61

➗ Tailwind CSS - Divide (Width, Color & Style)

📖 Overview

Divide utilities add borders between elements in a stack. They are equivalent to applying a border to all but the first element.

📏 Divide Width

Control the width of borders between elements:

  • Horizontal (x-axis): divide-x-0, divide-x-2, divide-x-4, divide-x-8, divide-x (1px)
  • Vertical (y-axis): divide-y-0, divide-y-2, divide-y-4, divide-y-8, divide-y (1px)
  • Reverse order: divide-x-reverse, divide-y-reverse
🌀

tailwind Designer

Live Component Playground

html Source
Loading...
Built with Tailwind CSS • Instant Reflection

🎨 Divide Color

Control the color of dividers between elements:

  • Any Tailwind color: divide-blue-500, divide-gray-300
  • Opacity: divide-blue-500/50
🌀

tailwind Designer

Live Component Playground

html Source
Loading...
Built with Tailwind CSS • Instant Reflection

✏️ Divide Style

Control the style of dividers between elements:

  • divide-solid (default)
  • divide-dashed
  • divide-dotted
  • divide-double
  • divide-none
🌀

tailwind Designer

Live Component Playground

html Source
Loading...
Built with Tailwind CSS • Instant Reflection

🧠 Test Your Knowledge

3 Questions

Progress: 0 / 3
Keep Going!Tailwind CSS - Outline