Doing it with style
For IE7+, Firefox, Safari, Chrome, Opera, iPad, iPhone, iPod Touch etc..
A vertical concertina menu with a click to open and click the same top level item (iPad etc.) or anywhere else to close.
This makes use of the adjacent and general sibling selectors to open the dropdown menu and also place a graphic over the current top level links so that clicking this will cancel the :active/:focus state of the link.
This has been tested in IE7, IE8, IE9, IE10, Firefox 3.6+, Safari (latest), Opera (latest), Chrome (latest), Flock, SeaMonkey, Avant, iPad, iPhone and iPod Touch.
I have also added a slide animation for Firefox 4+, Safari, Chrome, Opera, iPad, iPhone and iPod Touch.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
This demonstration can be used subject to the following terms and conditions.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.