Skip to content

Instantly share code, notes, and snippets.

@MatteoGauthier
Last active November 24, 2019 18:21
Show Gist options
  • Save MatteoGauthier/25e2cddc87a7c4fcfdd811d0ea5b96d2 to your computer and use it in GitHub Desktop.
Save MatteoGauthier/25e2cddc87a7c4fcfdd811d0ea5b96d2 to your computer and use it in GitHub Desktop.
Stylize details summary πŸ”₯

Stylize details summary πŸ”₯

details > div {
    padding-left: 0.5rem;
    margin-left: 0.2rem;
    margin-top: 0.2rem;
    border-left: solid #e7e7e7;
}
<details>
  <summary>More info</summary>
  <div>
    <h2>Yo men</h2>
    <p>No more info srry</p>
  </div>
</details>

Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment