Dev Helpers
← Back

Split key and value rows

Split key and value rows with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted;
    gap: 0.5rem;
  }
</style>
<dl class="demo">
  <div>
    <dt>Copies</dt>
    <dd>120</dd>
  </div>
  <div>
    <dt>Sheets</dt>
    <dd>480</dd>
  </div>
</dl>