Jump to content

Whole row in a table changed


phpnewbie81

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.