Dev Helpers
← Back

Draw a decorative trailing line

Draw a decorative trailing line with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .demo::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #64748b;
  }
</style>
<div class="demo">Draw a decorative trailing line</div>