Grow your CSS skills. Land your dream job.

element:hover element:after change

  • # April 28, 2013 at 11:59 pm

    If I have an element, and a pseudo :after that element, what is the syntax to make the after change when I hover over the element?

    # April 29, 2013 at 12:11 am

    `.class:after:hover` if you’re styling the `:after` pseudo-element on hover.

    # April 29, 2013 at 12:16 am

    Thanks. I want the :after to change when I hover over the .class

    something like this:

    .class:hover .class:after{change something}

    maybe it can’t be done because the :after is not in the .class? either way thanks for the feedback.

    # April 29, 2013 at 2:29 am

    figured it out

    .class:hover:after{change something}

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".