Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Checkbox Hack */
- input[type=checkbox] {
- position: absolute;
- top: -9999px;
- left: -9999px;
- }
- label {
- -webkit-appearance: push-button;
- -moz-appearance: button;
- display: inline-block;
- margin: 60px 0 10px 0;
- cursor: pointer;
- }
- /* Default State */
- div {
- background: green;
- width: 400px;
- height: 100px;
- line-height: 100px;
- color: white;
- text-align: center;
- }
- /* Toggled State */
- input[type=checkbox]:checked ~ .test{
- background: red;
- visibility:hidden;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement