PDA

View Full Version : Toggling div id using css2 in html



seek_nik
January 2nd, 2007, 05:24 AM
I am stuck to the problem that how to toggle on off any vertical panel in html page using css2, please help me out if anybody knows it completely.
Save me.

ditt0
January 2nd, 2007, 07:46 AM
You mean toggle as in onclick event?
You can't do that only with css. You need javascript for that. Css is and should be used just for presentation purposes, not for event handling (except for the link hover state).
Do a search on google:
http://www.google.com/search?hl=en&lr=&q=javascript+toggle+script&btnG=Search