contactskn 2 Report post Posted November 29, 2009 Dear friends I want to change the background color of a cell on mouse over it. So I would like to know what is the code for the same I mean to say as soon as I take the mouse pointer on the cell its background color should be changed and as soon as the mouse pointer is again moved back then it should be the same as previous. Share this post Link to post Share on other sites
Baniboy 3 Report post Posted November 29, 2009 (edited) You use this in a css file: CSStd { background: white; color: black;}td:hover, td:active, td:focus { background: black; color: white;} :hover, :focus and :active ensure compatibility with most browsers. But please, please don't use tables, they are horrible. Edited November 29, 2009 by Baniboy (see edit history) Share this post Link to post Share on other sites
shadowx 0 Report post Posted November 30, 2009 :hover should do the trick. Tables have their place but i dropped them long ago for general layout. They are only good now for their intended purpose. Displaying data in a table, not for arranging links etc... Share this post Link to post Share on other sites