Dev Helpers
← Back

Allow a description to expand without clipping

Allow a description to expand without clipping with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    height: auto;
    overflow: visible;
    max-width: 25ch;
  }
</style>
<details class="demo">
  <summary>Expand this note</summary>
  <p>The section grows when opened.</p>
</details>