Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created July 7, 2021 22:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/0de7793870de997cb6a556a30a659bf2 to your computer and use it in GitHub Desktop.
Save miguelmota/0de7793870de997cb6a556a30a659bf2 to your computer and use it in GitHub Desktop.
HTML details summary toggle css example
<!-- https://jsfiddle.net/1cehyw54/ -->
<details open>
<summary>Toggle me</summary>
<div>
Hello world
</div>
</details>
details > summary {
list-style: none;
cursor: pointer;
}
details > summary::marker {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment