|
-
Nov 4th, 2004, 03:29 PM
#1
Thread Starter
Frenzied Member
CSS - class applies on click [resolved]
I would like to apply a certain class to an object only when the object has been clicked on. I know you can do:Which will apply that part of CSS to the object when the mouse is hovering over the object. Is there an equivalent to when you've clicked the object or do I have to write JavaScript to do the trick?
Last edited by Acidic; Nov 5th, 2004 at 05:14 AM.
Have I helped you? Please Rate my posts. 
-
Nov 5th, 2004, 04:48 AM
#2
Frenzied Member
have you tried #Obj:active ?
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Nov 5th, 2004, 05:14 AM
#3
Thread Starter
Frenzied Member
That doesn't work exactly how I want it. But I've managed to make it in JavaScript now anyways. It's not quite a neat, but it works.
Thanks anyway.
edit: I'd never known about that action, thanks for pointing it out to me.
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|