You are close already. Just make sure to hide the checkbox and associate it with a label you style via input[checkbox] + label
Complete Code: http://gist.github.com/592332
JSFiddle: http://jsfiddle.net/4huzr/
More Related Contents:
- Is the :before pseudo-element allowed on an input[type=checkbox]?
- Is there a CSS parent selector?
- What do commas and spaces in multiple classes mean in CSS?
- Complex CSS selector for parent of active child [duplicate]
- Select every Nth element in CSS
- CSS3 selector :first-of-type with class name?
- CSS Selector that applies to elements with two classes
- Why isn’t it possible to combine vendor-specific pseudo-elements/classes into one rule set?
- CSS ‘>’ selector; what is it? [duplicate]
- Select element based on multiple classes
- CSS selector based on element text? [duplicate]
- CSS: How to say .class:last-of-type [classes, not elements!] [duplicate]
- How to write a CSS hack for IE 11? [duplicate]
- Is the CSS :not() selector supposed to work with distant descendants?
- :not() selector not behaving the same between Safari and Chrome/Firefox
- Combining :last-child with :not(.class) selector in CSS
- Invalid CSS selector causes rule to be dropped: What is the rationale?
- Style child element when hover on parent
- CSS Styling Checkboxes
- How to select the first, second, or third element with a given class name?
- Why can’t you group descendants in a CSS selector?
- Combine :after with :hover
- What does the dot mean in CSS?
- :active css selector not working for IE8 and IE9
- CSS selector involving pseudo class first-child and dropcap
- Multiple descendant children selector with css [duplicate]
- Targeting position:sticky elements that are currently in a ‘stuck’ state
- Select odd even child excluding the hidden child
- CSS class repetition to increase specificity
- select second child