Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can pure CSS be used to change the background of multiple divs during a rollover? Re: Can pure CSS be used to change the background of multiple divs during a rollover?

#115924
Watson90
Member

Ahh thanks @rainemaida and @andy_unleash

So variables that aren’t going to change can be declared locally (under document.ready function)

and variables like ‘$(this)’ always changes so they have to be declared inside the function.

I see now.

> I assume you’re just playing with JQuery – cause you could do this same effect using the :hover pseudo class in CSS instead.

Yes I am just playing around with it, I know that CSS would be a better choice :)