Tantbpv2015-05-13 12:22:24
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)
IllusionTurtle, 2015-05-13

you can do it a little differently:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question