Your CSS selectors are missing the target.
.Table .Popup tr:hover {
background-color:red;
}
should actually be:
.Popup tr:hover {
background-color:red;
}
(Check it out: http://jsfiddle.net/kUTDB/4/)
Also, update your code from:
.Table .Popup .PopupRow:hover {
background-color:red;
}
to either
table tr.PopupRow:hover {
background-color:red;
}
or
table .PopupRow:hover {
background-color:red;
}
(View here: http://jsfiddle.net/kUTDB/5/)
Note that both options will style the same elements, but the one with higher specificity (the second one) will take precedence.
The first selector, .Table .Popup tr:hover
, targets tr
elements being hovered over within an element with the class of Popup
which is inside an element with the class of Table
.
Meanwhile, the second selector, .Table .Popup .PopupRow:hover
, selects any elements with the class of PopupRow
being hovered over within an element with the class of Popup
nested within an element with the class of Table
.
Your HTML structure in the fiddle doesn't match this hierarchy, hence why the styles aren't applying as expected.