html - How do I select all the rows in a table, except a particular row, using CSS? -


i apply style every row in table except specific row (could first, or 1 unique class or id - doesn't matter).

how do that?

the easiest cross-browser way apply style override it, this:

table tr td { background: blue; } table tr.someclass td { background: none; } 

since 1 class, id, etc more specific, it'll have different styling...just put whatever properties you're setting rows in selector overrides/reverses styling. benefit of approach doesn't need partially supported (css3) selectors, works in browsers.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -