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

Behavior

Best practices

Frequency

Do use dividers to separate groups of similar content.

App interface with two main sections, 'Messages' and 'Listings.' Divider line correctly separates the two sections.

Don’t use dividers to separate individual items within a list.

App interface with two main sections, 'Messages' and 'Listings.' Divider lines incorrectly separate the conversation threads in the 'Messages' section rather than delineate only between ‘Messages’ and ‘Listings’

Elevated content

Do use full-width dividers for elevated UI elements.

Interactive price range filter interface with a histogram showing distribution of prices, with a 'See 120 results' button below that is sticky to the bottom of the screen with a correct divider line full width between content above.

Don’t use inset dividers for content that overlaps other content.

Interactive price range filter interface with a histogram showing distribution of prices, with a 'See 120 results' button below that is sticky to the bottom of the screen with an incorrect inset divider line between content above.

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