Results 1 to 3 of 3

Thread: CSS - class applies on click [resolved]

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Resolved 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:
    Code:
    #Obj:hover
    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.

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    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.

  3. #3

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    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
  •  



Click Here to Expand Forum to Full Width