Skip to main content

Divider Element

The Divider element creates horizontal lines to separate content sections. Use dividers to improve visual hierarchy and organize your popup layout.

Overview​

PropertyValue
Element Typedivider
Can Contain ChildrenNo
PurposeVisual separation

Use Cases​

  • Separating popup sections
  • Breaking up long content
  • Visual hierarchy
  • Decorative accents
  • Horizontal rules

Style Settings​

Divider Style​

Choose the line style:

StyleDescription
SolidContinuous line
DashedDashed line
DottedDotted line
DoubleDouble line

Width​

Set the divider width:

OptionDescription
Full100% of container
AutoCentered with margins
FixedSpecific pixel width
PercentagePercentage of container

Example:

Width: 80%

Thickness​

Line thickness (height):

ValueDescription
1pxThin/subtle
2pxStandard
3-4pxMedium
5px+Bold

Color​

Set the line color:

Color: #e2e8f0

Common choices:

  • Light gray for subtle separation
  • Brand color for accent
  • Gradient for decorative effect

Pattern Settings​

XBuilder includes decorative divider patterns:

Pattern Types​

PatternDescription
NoneSimple line
ZigzagZigzag pattern
WaveWavy line
DotsRow of dots
ArrowsArrow pattern
TribalDecorative tribal

Pattern Size​

Adjust pattern scale.

Pattern Repeat​

Control pattern repetition.

Layout Settings​

Alignment​

Position the divider:

OptionDescription
LeftAlign to left
CenterCenter horizontally
RightAlign to right

Margin​

Space around the divider:

Top: 16px
Bottom: 16px

Typical vertical spacing: 12-24px

Padding​

Space inside divider container (rarely needed).

Advanced Styling​

Gradient Divider​

Create a gradient line using custom CSS:

background: linear-gradient(90deg, transparent, #4F46E5, transparent);

Fade Effect​

Fade the divider at edges:

background: linear-gradient(90deg, 
transparent 0%,
#e2e8f0 20%,
#e2e8f0 80%,
transparent 100%
);

Icon Divider​

Place an icon in the center using CSS or a Section with:

  • Left: Divider
  • Center: Icon
  • Right: Divider

Advanced Settings​

HTML ID​

Custom ID for CSS targeting.

CSS Classes​

Add custom classes.

Device Visibility​

Show/hide divider per device.

Examples​

Subtle Separator​

Settings:

  • Style: Solid
  • Width: 100%
  • Thickness: 1px
  • Color: #f1f5f9
  • Margin: 16px 0

Bold Section Divider​

Settings:

  • Style: Solid
  • Width: 60px
  • Thickness: 4px
  • Color: #4F46E5
  • Alignment: Center
  • Margin: 24px auto

Dashed Divider​

Settings:

  • Style: Dashed
  • Width: 100%
  • Thickness: 2px
  • Color: #cbd5e1
  • Margin: 20px 0

Decorative Wave​

Settings:

  • Pattern: Wave
  • Width: 100%
  • Color: #4F46E5
  • Margin: 24px 0

When to Use Dividers​

Good uses:

  • Between distinct content sections
  • After headings (subtle)
  • Before CTAs
  • In long-form content

Avoid:

  • Between every element (creates clutter)
  • When spacing alone is sufficient
  • In minimal designs (use whitespace instead)

Alternatives to Dividers​

Sometimes spacing or styling changes work better:

AlternativeDescription
WhitespaceJust increase margins
Background changeDifferent section backgrounds
BorderBottom border on elements
ShadowSubtle shadow separation

Best Practices​

  1. Be consistent — Use same divider style throughout
  2. Don't overuse — Dividers should aid, not clutter
  3. Match the design — Subtle for minimal, bold for dramatic
  4. Consider spacing — Add adequate margin
  5. Mobile check — Verify appearance on small screens
  • Spacer — Empty vertical space
  • Section — Section containers
  • Heading — Often preceded by dividers