Tell me how to change the properties of another object through hover ? In my case, set visibility to visible . I assumed something like this:
.reiss-text: hover > .reiss-ramka { visibility: visible; } Tell me how to change the properties of another object through hover ? In my case, set visibility to visible . I assumed something like this:
.reiss-text: hover > .reiss-ramka { visibility: visible; } Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
You do not work because you hover add a space:
.reiss-text: hover +.reiss-ramka This is not a valid entry. Need to write - :hover !
And here is your example:
.reiss-ramka { visibility: hidden; display:block; width: 216px; height: 300px; background-color: #00a388; margin-top: -66px; } .reiss-text:hover +.reiss-ramka { visibility: visible; } <div class="reiss-text">reiss-text</div> <div class="reiss-ramka">reiss-ramka</div> 2 options with display and visibility
div.b { display: none; } div.a:hover + div.b { display: block; } div.d { visibility: hidden; } div.c:hover + div.d { visibility: visible; } <div class="a">Видимый</div> <div class="b">Скрытый display: none</div> <div class="c">Видимый</div> <div class="d">Скрытый visibility: hidden</div> Source: https://ru.stackoverflow.com/questions/576171/
All Articles