Skip to content

Instantly share code, notes, and snippets.

@elmousa
Created October 29, 2012 13:29
Show Gist options
  • Save elmousa/3973547 to your computer and use it in GitHub Desktop.
Save elmousa/3973547 to your computer and use it in GitHub Desktop.
details
<details>
<summary>whats your name?</summary>
<h1>moataz</h1>
<details>
<summary>related names</summary>
<h2>alaa</h2>
<h2>amr</h2>
</details>
</details>
<style>
summary::-webkit-details-marker {
display: none
}
summary:after {
background: red;
border-radius: 5px;
content: "+";
color: #fff;
float: left;
font-size: 1.5em;
font-weight: bold;
margin: -5px 10px 0 0;
padding: 0;
text-align: center;
width: 20px;
}
details[open] summary:after {
content: "-";
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment