471,618 Members | 1,157 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Table Row Over

Hello,

I want to change the background color of a table row when the mouse is
over.
Can this be done with CSS or only with JavaScript?

Thanks,
Miguel
Nov 20 '07 #1
1 1797
On 2007-11-20, shapper <md*****@gmail.comwrote:
Hello,

I want to change the background color of a table row when the mouse is
over.
Can this be done with CSS or only with JavaScript?
Yes, with CSS, using the :hover pseudo.

tr:hover { background-color: yellow; }

Might not work in IE (I vaguely remember it might though if you use the
strict doctype).
Nov 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Richard Lawrence | last post: by
4 posts views Thread by eomer | last post: by
117 posts views Thread by phil-news-nospam | last post: by
20 posts views Thread by p175 | last post: by
7 posts views Thread by Serge Rielau | last post: by
15 posts views Thread by Piero 'Giops' Giorgi | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.