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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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