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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -