Dev Helpers
← Back

Give a decoration its own colour

Give a decoration its own colour with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    text-decoration: underline;
    text-decoration-color: #9a3412;
    text-decoration-thickness: 3px;
  }
</style>
<div class="demo">Give a decoration its own colour</div>