Answer the question
In order to leave comments, you need to log in
How to connect blocks in this structure so that there is a relationship during hover?
Hello. The question is very easy in theory, but I'm stupid, so help me.
In general, there is such a structure of elements:
<div class="outer__wrapper">
<div class="outer__element" id="element-0">Outer Test0</div>
<div class="outer__element" id="element-1">Outer Test1</div>
<div class="outer__element" id="element-2">Outer Test2</div>
<div class="inner__wrapper">
<div class="inner__element" id="element-0">Outer Test0</div>
<div class="inner__element" id="element-1">Outer Test1</div>
<div class="inner__element" id="element-2">Outer Test2</div>
</div>
</div>
#element-*.outer__element:hover ~ .inner__wrapper #element-*.inner__element {
background-color: red
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question