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 ?
hey guys
what’s mean by selector after :hover or any pseudo classes ?
like this selector #dropdown
#Itemtwo:hover #dropdown
#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.
thx alot