Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
#changing element2 on hover of element1
21 messages · Page 1 of 1 (latest)
it does seem to change #personal_instagram's colour, but idk how to make it so it changes #urgent_inquiries's
and it only changes very breifly, only for around half a second
It works the other way around, you can style child from parent
@chilly bramble
solution: https://stackoverflow.com/a/32470900
ty i will take a look tomorrow
so u mean like this? @heavy marten https://jsfiddle.net/uvwxLjgp/2/
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
it dosent work and i dont rlly understand
@chilly bramble What do you want to do exactly?
Change the color of the my personal instagram to be pink when urgent inquiries is hovered?
other way round
change urgent inquiries when the personal ig is hovered
i'm actually going to change the opacity but doing the colour now as a starting point
@chilly bramble
Have to use pseudo-elements and specifically :has()
#urgent_inquiries:has(#personal_instagram:hover)
thank youu
i overlooked the fact that the opacity will change on #personal_instagram aswell as #urgent_enquiries, how can i prevent this? https://jsfiddle.net/f8zh2a5u/3/
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
without removing the a tag from my p