Forums

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

Home Forums CSS wt’s mean by selector after :hover ?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34582
    ameral
    Participant

    hey guys

    what’s mean by selector after :hover or any pseudo classes ?

    like this selector #dropdown

    #Itemtwo:hover #dropdown
    #88261
    jamygolden
    Member
    #Itemtwo:hover #dropdown{background: red;}

    When you hover over #Itemtwo, make #dropdown’s background red.

    Note: It still works like a normal selector though (#parent #decendants). If you remove :hover, the selector should still work. So if this works:

    #Itemtwo #dropdown{background: red;}

    Then the first example I gave would work on hover.

    #88437
    ameral
    Participant

    thx alot

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