Created
July 7, 2021 22:35
-
-
Save miguelmota/0de7793870de997cb6a556a30a659bf2 to your computer and use it in GitHub Desktop.
HTML details summary toggle css example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- https://jsfiddle.net/1cehyw54/ --> | |
<details open> | |
<summary>Toggle me</summary> | |
<div> | |
Hello world | |
</div> | |
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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