Q
Q
Qairat2017-09-06 13:42:06
css
Qairat, 2017-09-06 13:42:06

Why doesn't the style of another element change on hover?

Hello!
the code

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alvvi, 2017-09-06
@alvvi

The ~ selector selects all the following siblings that match the condition
The + selector selects only the sibling coming immediately after the element
BUT only siblings, selectors cannot go a level higher in CSSOM, these are the rules.
You have .itema parent a.

M
Marty McFly, 2017-09-06
@alex_shevch

Can you describe what needs to be done in the end?

K
Kiryushka Tsisar, 2017-09-06
@carlcox

in this case, it’s better not to give a: hover , but to give and change both it and the child element according to the parent hover

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question