Skip to content

Instantly share code, notes, and snippets.

@aurelkurtula
Created March 9, 2013 19:08
Show Gist options
  • Save aurelkurtula/5125320 to your computer and use it in GitHub Desktop.
Save aurelkurtula/5125320 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#c{
margin: 100px;}
.powerL{
width: 50px;
height: 50px;
background: red;
display:block;
float: left;
}
#powerL1{
border-radius: 50% 0 0 50%;
}
#powerL2{
border-radius: 0 50% 50% 0;
}
.power:checked + label{ background: blue;}
<div id="c">
<input type="radio" id="power1" class="power" name="n" />
<input type="radio" id="power2" class="power" name="n" />
<label for="power1" id="powerL1" class="powerL" ></label>
<label for="power2" id="powerL2" class="powerL" ></label>
</div>
// alert('Hello world!');
{"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