I apply this selector in the hope that it will act only on the rows in the table of the main-view class. But the style is automatically inherited on other classless tables. There are weak suspicions on blueprint.css, but I think it's not about him. Do not tell me what's wrong?

table.main-view tr:hover 
  • By tested on a clean page, it works as it should. most likely blueprint.css, or other downloadable styles - dogmar
  • Damn sorry I did not test. Probably, it turns out somewhere is registered for the inherit table? - culebre
  • Try it! Important - dogmar
  • one
    do not try the importer, look for the reason - makregistr
  • Yes it works, but for every properties! Important to prescribe somehow not ice. - culebre

1 answer 1

If the tables are inside the table.main-view, then everything is clear: the tr of these tables also lie inside the table.main-view, so the rule applies to them. Register table.main-view > tbody > tr:hover .

Fixed

  • I tried, but alas, the nested table still picks up the style - culebre
  • Everything works, you just need to choose the direct descendants of table> tbody. The working version: table.main-view> tbody> tr: hover. Thank you all! - culebre
  • Yes thank you). Always with this moment kosyachu. - ling