Search Tag Inspector

17 March 2013

Accordion with CSS3


A simple content accordion using the adjacent and general sibling combinator and the: checked pseudo-class

Checkboxes
See the result (there in no JavaScript)
http://jsfiddle.net/taginspector/eHsB5/




Radio buttons
See the result (there in no JavaScript)
http://jsfiddle.net/taginspector/jxF2K/




Default open (Checkboxes)
See the result (there in no JavaScript)
http://jsfiddle.net/taginspector/bZV9N/


No comments:

Post a Comment