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?
November 29, 2012 at 10:34 am
#115924
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 :)