Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS element:hover element:after change

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44423
    ChrisB
    Participant

    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?

    #133462
    ChrisP
    Participant

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

    #133463
    ChrisB
    Participant

    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.

    #133471
    ChrisB
    Participant

    figured it out

    .class:hover:after{change something}

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.