Colour of an element changes when hovering over another one
-
Hello,
I would like to make something similar to the page on this site: https://cigue.net/en/index/
So I noted that in the theme's css:
#scenography1:hover ~ #scenography2 {
color: black!important;
}Then change the css class of my elements.
Only when I hover over the "scenography1" element the other elements do not change colour.
However, I tested it by replacing "Color" with a coloured background and it works. What's more, I succeeded on a test server that doesn't use the theme. So I guess the problem is the theme, but I can't put my finger on it.
Can you help me?
-
can u send the url of where ure trying to achieve this
the tilde selector ure using, i havent ever used or seen it
this is it:
https://www.w3.org/TR/selectors-3/#general-sibling-combinatorshow exactly are u imagining the selector to work?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login