Jump to content
MakeWebGames

CSS [V2] MAYBE [V1]


Guest Sniko`

Recommended Posts

okay i was just experimenting on v2 and i found this really cool CSS some of you may already know it lol but i really like it.

add this in header.php or style.css which ever you use

 

td:hover{ background-color:#999999; }

 

it highlights the table a differnt colour AWSOM

Link to comment
Share on other sites

  • 4 weeks later...

Re: CSS [V2] MAYBE [V1]

The css pseudo-class "hover" is only recognized on the "A" element in IE. Of course other browsers recognize it on other elements.

So, take note that that css deal does not work in IE.

For IE, you'd need to use the mouseenter and mouseleave events to do this sort of thing (javascript of course) (IE only).

You could use mouseover and mouseout which is supported by most browsers (IE, firefox, opera among others) but there are difficulties with this.

http://www.quirksmode.org/dom/events/index.html

There's your DOM events browser compatibility list and explanations of the four mouse events I listed as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...