Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Created September 11, 2012 16:49
Show Gist options
  • Save felixzapata/3699774 to your computer and use it in GitHub Desktop.
Save felixzapata/3699774 to your computer and use it in GitHub Desktop.
Secret sauce from "Checkboxes and the ridiculous things you can do with them"
/*
http://thecssninja.com/talks/ridiculous_checkboxes/#/
*/
/* Off */
input[type="checkbox"] ~ div {
// Fancy styles
}
/* On */
input[type="checkbox"]:checked ~ div {
// Fancy styles
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment