Chaning HREF color on TD mouseover

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
niubbetto
Forum Newbie
Posts: 2
Joined: Tue Oct 13, 2009 9:23 am

Chaning HREF color on TD mouseover

Post by niubbetto »

Hi,

how do i manage to get the href color change when the mouseover is on its parent td?

thanks a lot!
niubbetto
Forum Newbie
Posts: 2
Joined: Tue Oct 13, 2009 9:23 am

Re: Chaning HREF color on TD mouseover

Post by niubbetto »

ok, done by myself with jquery, hope it helps someone!

$("#menu td#id1 a").css("color","red");
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Chaning HREF color on TD mouseover

Post by pickle »

Unless you're coding for IE6 & lower, you can do this in CSS:

Code: Select all

#menu td:hover a{ color:red; }
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply