Skip to content

CSS Showcase · Live Demo

Dividers that fade.

Separators ranging from a plain hr hairline to gradient-faded labelled rules, vertical column dividers, and inset list separators.

Featured demo

mobile · inset
Notifications
Privacy
Appearance
Account

mobile design patterns

divider-inset.css
/* Inset list dividers */
.divider-inset-list .row {
  border-bottom: 1px solid var(--border);
}

.divider-inset-list .row:last-child {
  border-bottom: 0;
}

.divider-inset-list .row .content {
  margin-inline-start: 2rem; /* inset past the leading icon */
}

CSS features used

  • • ::before / ::after pseudo-lines
  • • linear-gradient fades
  • • flexbox align-self: stretch
  • • border-bottom lists
  • • margin-inline-start inset
  • • Semantic tokens

CSS Showcase · Share

Share this demo as a 1:1 image

A 2048×2048 PNG with the live current view, the title, and the CSS features — for social posts, docs, and READMEs.

The snapshot follows the device selected on the page — switch between desktop, iPad, and mobile above and the card updates.