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/See the result (there in no JavaScript)
Default open (Checkboxes)
See the result (there in no JavaScript)
http://jsfiddle.net/taginspector/bZV9N/See the result (there in no JavaScript)
No comments:
Post a Comment