phpnewbie81 Posted August 16, 2007 Share Posted August 16, 2007 Hi, i created a table with two columns - name, and age. When i mouve over any of the cell, i want the whole row background color to be changed... the following css code will only change the cell color, but not the whole row.. any idea ? table.tablelist th { border:1px solid; border-color:#ddd #999 #888 #ddd; background-color:#ddd; font-weight:bold; text-align:left; color:#003; padding:2px; padding-bottom:0px; font-size:.9em; } table.tablelist td { border:1px solid; border-color:#fff #bbb #bbb #fff; background-color:#fff; padding:1px; font-size:.9em; } table.tablelist td:hover { background-color:lightyellow; } Link to comment https://forums.phpfreaks.com/topic/65169-whole-row-in-a-table-changed/ Share on other sites More sharing options...
ToonMariner Posted August 16, 2007 Share Posted August 16, 2007 table.tablelist tr:hover td{ background-color:lightyellow; } this won't work in ie6 - for that you will need some js and the onmouseover event handler on the <tr> tag. Link to comment https://forums.phpfreaks.com/topic/65169-whole-row-in-a-table-changed/#findComment-325625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.