Dev Helpers
← Back

Notebook ruled lines

Notebook ruled lines with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    line-height: 2rem;
    background: repeating-linear-gradient(
      transparent 0 31px,
      #94a3b8 31px 32px
    );
  }
</style>
<p class="demo">Workshop notes<br />Paper grain<br />Ink colour</p>