Created
September 3, 2012 18:48
-
-
Save piatra/3612159 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or 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
body { | |
padding:100px; | |
} | |
input:checked ~ p.first { | |
display:none; | |
} | |
input:not(:checked) ~ p.second { | |
display:none; | |
} | |
.first { | |
background: skyblue; | |
padding:10px; | |
} | |
.second { | |
background: papayawhip; | |
padding:10px; | |
} |
This file contains hidden or 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
<label for="checker">Check me</label> | |
<input type="checkbox" id="checker"> | |
<p class="first"> | |
Now you see me | |
</p> | |
<p class="second"> | |
Now you don't | |
</p> |
This file contains hidden or 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
{"view":"split-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment