T
T
Tantbpv2015-05-13 12:22:24
css
Tantbpv, 2015-05-13 12:22:24

Advanced use of :hover in css. Is it possible to interact with other DOM tree elements?

Started experimenting with the :hover property in css and ran into a problem.
Suppose there is such a layout - //jsfiddle.net/xvscv15c/
Task: when you hover over a red square, the rest of the squares should disappear.
Superficial reading of the documentation and googling did not satisfy me.
Is it possible to interact with other elements of the tree house (by analogy i:hover:after {...}). If not, why not?
PS do not suggest using JS.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IllusionTurtle, 2015-05-13
@Tantbpv

you can do it a little differently:
jsfiddle.net/xvscv15c/2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question