Skip to content

Instantly share code, notes, and snippets.

@kaleb
Created September 17, 2013 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaleb/6600038 to your computer and use it in GitHub Desktop.
Save kaleb/6600038 to your computer and use it in GitHub Desktop.
Untitled
[type=radio] {
display:none;
}
span {
cursor: pointer;
text-align: center;
font-family: sans-serif;
font-size: 14px;
font-weight: bold;
color: #ccc;
line-height: 40px;
height: 40px;
width: 40px;
background-color: #eee;
border-radius: 100px;
margin-right: 10px;
display:inline-block;
}
[type=radio]:checked ~ span {
background: blue;
color: #fff;
}
<label>
<input type="radio" name="toggle" value="1" />
<span>1</span>
</label>
<label>
<input type="radio" name="toggle" value="2" />
<span>2</span>
</label>
<label>
<input type="radio" name="toggle" value="3" />
<span>3</span>
</label>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment