#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Europe
    Posts
    4
    Rep Power
    0

    Post How to change table color on mouse over using CSS


    I have this line of code in all my <td> but i would like to make it standard to all my <td>
    how can i make it possible??
    can you help me to make it possible through CSS ...


    <td bgcolor="#F2F2F2" onMouseOver="this.bgColor='#FFFFFF'" onMouseOut="this.bgColor='#F2F2F2'">abc</td>


    thanks...
    Last edited by snalex; July 5th, 2003 at 08:51 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2003
    Posts
    1,014
    Rep Power
    15
    Code:
    td {
    	background-color: #f2f2f2;
    }
    td:hover {
    	background-color: #fff;
    }
    However, this is not supported in all browser (version)s.
    In IE5.5 for Windows, for example, this has no effect. Mozilla and Opera 7 deal with it properly.

    Hope this helps,
    Jeroen

IMN logo majestic logo threadwatch logo seochat tools logo