Skip to content

Divider

Interactive specimen

Native controls work. Demo links and submissions stay inside this specimen.

Source markup
<!-- @dsCard group="Display" height=108 -->
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<title>Divider</title>
<style>
  /* Layout of the demo state only. Colour and type come from bundle.css. */
  .demo {
    max-width: 960px;
    padding: var(--space-3xs);
    display: grid;
    gap: var(--space-2xs);
    align-items: start;
  }
  /* The rule ships without margin, so the grid gap supplies its room. */
  .demo > p,
  .demo > hr { margin: 0; }
</style>
</head>
<body>
<div class="demo">
  <p class="t-label">.divider</p>
  <p class="base">Noiz stands for a Network of Independent Zones.</p>
  <hr class="divider">
  <p class="base">Noiz does hosting, cybersecurity and software.</p>
</div>
</body>
</html>

Divider is the hairline rule that parts two blocks of related content when a heading would be too much. Reach for it inside a long .content-block, or between a card’s body and its .card__footer. Do not use it to fence off unrelated sections: a heading or a fresh .card carries that job. Do not use it as a decorative stripe either.

An <hr class="divider">, or a <div class="divider" role="separator"> where the surrounding markup cannot take an <hr>. Nothing else: no children, no pillar scope class, since .divider does not read --division-accent. The rule carries no margin of its own, so the surrounding flow spacing governs. Inside .content-block that is the space-md step; elsewhere give it a space-* token through the parent’s gap.

Rest is the only state: no hover, focus or disabled form, no pointer events. .divider is border-width-hairline tall with border: 0 and color-semantic-border-base as its background, the same hairline value the .card border uses, so a divider inside a card matches the card’s own edge.

.divider--gradient and .t-gradient went on 2026-09-22 with the green-to-blue gradient behind them. Amber is the only identity colour now, so a two-colour rule has nothing left to say.

  • Role. <hr> carries the native separator role, so nothing is added. The <div> form needs role="separator", because a bare <div> has none.
  • Name. None, and none is wanted: a separator is not named, so do not add aria-label.
  • Keyboard. Not interactive. Tab skips it, and Enter, Space, Escape and the arrows do nothing. This separator is static, never a movable splitter.
  • Target size. Nothing in it is a target, so WCAG 2.2 SC 2.5.8 does not apply. bundle.css gives .divider only border-width-hairline of height, far under the 24px floor.
  • Announcement. None. No live region, and no state to report.

Do keep the height at border-width-hairline. At border-width-thick the rule reads as an accent bar, which is the .card--bordered-accent top edge, not a divider. Do not tint a plain divider with color-semantic-border-strong, color-semantic-text-faint or any accent: color-semantic-border-base is the one hairline value here. Do not stack two rules with only a line of copy between them. Do not put one above .footer-legal, which already draws its own border-width-hairline top border in color-semantic-border-base and so doubles the rule.

Hand-written from themes/noiz/assets/css/components.css (.divider).