0

I am trying to change the :hover state for a tr object - but only one tr object, not the hover state for the rest.

The js-fiddle: http://jsfiddle.net/Lgs12pof/1/

I am trying to not make the tr tag's background, where it says bar, change. I am looking for a css hack which i can use in the style"" element, and this way not make it change background color on hover.

I have tried the following, but this does not change the hover state:

<tr style="background-color:none !important">
    <td colspan="5">
        <div>Bar</div>
    </td>
</tr>

Regards, Patrick

Evgeniy
  • 2,915
  • 3
  • 21
  • 35
Patrick
  • 166
  • 2
  • 14

1 Answers1

0

You simply can't. Why not use an ID?

<tr style="background-color:none !important" id="aRow">
       <td colspan="5">
           <div>Bar</div>
        </td>
</tr>

CSS:

#aRow:hover {
  background-color: red;
}
idmean
  • 14,540
  • 9
  • 54
  • 83