Divider

v2.0

Dividers break up and group content on the page.

  • CSS
  • Marko
  • React

Considerations

Supportive

Dividers separate groups of content when white space isn’t clear enough.

Subtle

Dividers are just noticeable enough to be effective and not interruptive.

Seldom

Dividers are used sparingly to group content, not separate multiple list items.

Types

Inset

Inset dividers divide groups of related content. They can also be used to provide structure to tappable cells. They should match the inset level of content.

Order checkout screen with inset dividers organizing content into sections for payment details, shipping address, and shipping method.

Full-width

Use full-width dividers to separate distinct sections of content. They can also be used instead of drop shadows to imply elevation for fixed elements.

Full-width divider line separating two item cards from a sticky bottom button titled “go to checkout”

Behavior

Separating list content

Dividers are used to separate list groups and not individual list items. This is especially helpful when content in adjacent lists are similar.

Product listing page, featuring a 'Listing' section with three watches at different prices and a 'Trending videos' section, separated by light grey divider lines for clear section distinction.

Elevated elements

Elements that overlay on top of other content, like fixed navigation or fixed actions, use a full-width divider to provide a stronger sense of separation.

Full-width divider line separating a grid of four sneaker images on top from a sticky action button on the bottom of the page to continue that is floating above the image content.

Best practices

Specs

A detailed spec for an inset divider. The divider line is 1px thick. The spacing on the left and right of the divider matches the margin of the page. In this case, there is 16px on the left and right, resulting in the divider’s width plus the left and right margins totaling 100%.

Inset divider

A detailed spec for a full-width divider. The divider line is 1px thick. The divider spans the full width of it’s content and totals 100% with no space on the left or right.

Full-width divider