Click to See Complete Forum and Search --> : Can you do a on mouseclick in css


riskmod
11-16-2006, 11:27 AM
I have done mouseovers in css, but never click and then the popup would open and hide once I click something else.

I'm trying to do a faq where you have different questions and you would click and the answers would pop and go away when you click the next question and the boxes(popup) would be in the same position all the time so on.

I'd dopne this in javascript and just wondering if css can do it (pretty sure of it) just wondering. Thanks!

_Aerospace_Eng_
11-16-2006, 01:44 PM
You can try using a:active which would only happen if the user holds down the left mouse button down on the link. There is also a:focus which isn't supported by IE6. Not sure if its supported by IE7. Good luck. I think javascript will be the best solution because the box won't stay up if the user moves their mouse away from the box.

riskmod
11-17-2006, 11:01 AM
Ok Thanks!

FIN23
11-18-2006, 07:28 AM
you mean something laong these lines??

pure css popups (http://meyerweb.com/eric/css/edge/popups/demo.html)

riskmod
11-18-2006, 09:27 PM
No, those are mouse rollovers I was trying to do onclick rollovers. Thanks anyways