Treehouse: Grow your CSS skills. Land your dream job.

a:active state last longer

  • # May 2, 2012 at 6:47 pm

    how can i make the image used when a link is active stay longer by a few seconds.
    if you click to fast you don’t see the cage it just looks like a mistake even.

    how can I make a:active last a bit longer.

    and when is the start new discussion button on the side here going to be fixed!!
    its missing its bottom!

    # May 2, 2012 at 6:58 pm

    You can add a class called ‘active’ and apply the same stylings to that.

    You can do this via JS, then just remove the class after a certain number of time.

    # May 2, 2012 at 7:01 pm

    using delay() ?

    it was simpler using css…

    # May 2, 2012 at 7:11 pm

    # May 2, 2012 at 7:16 pm

    i was trying something like that… thanks

    # May 2, 2012 at 7:23 pm

    You can certainly do this only using CSS, but it won’t work on older browsers:

    # May 2, 2012 at 8:23 pm

    that as the first thing i tried but i don’t think it works on backgrounds that are images

    # May 2, 2012 at 8:46 pm

    @shamai Should work fine ( Got a link?

    # May 2, 2012 at 11:12 pm

    it doesn’t seem to work. I looked at your jsfiddle and it doesn’t work.

    # May 2, 2012 at 11:19 pm

    What browser are you using? It works fine for me in Chrome.

    # May 3, 2012 at 11:34 am

    ah.. i was on safari….

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.