By adding a class to either the first tr
or the subsequent tr
s. There is no crossbrowser way of selecting the rows you want with CSS alone.
However, if you don’t care about Internet Explorer 6, 7 or 8:
tr:not(:first-child) {
color: red;
}
More Related Contents:
- how do I make device specific selectors in css [closed]
- Is there a “previous sibling” selector?
- What does a space mean in a CSS selector? i.e. What is the difference between .classA.classB and .classA .classB?
- CSS selector for first element with class
- What does the “+” (plus sign) CSS selector mean?
- How are the points in CSS specificity calculated
- Is there a CSS selector by class prefix?
- How do I select an element based on the state of another element in the page with CSS?
- Does the order of classes listed on an item affect the CSS?
- Select all child elements recursively in CSS
- CSS “and” and “or”
- Using the last-child selector
- Why doesn’t the selector h3:nth-child(1):contains(‘a’) work?
- What is the difference between :focus and :active?
- Can I have multiple :before pseudo-elements for the same element?
- Are parentheses allowed in CSS selectors?
- What is the difference between pipe (|) and caret (^) attribute selectors?
- Can type selectors be repeated to increase specificity?
- The use of /deep/ and >>> in Angular 2
- Zebra striping a table with hidden rows using CSS3?
- Select nth-child across multiple parents
- Combining :not() selectors in CSS
- Select an element with empty class attribute (class=””) using CSS?
- How do I target elements with an attribute that has any value in CSS?
- CSS select the first child from elements with particular attribute
- How to show the first N elements of a block and hide the others in css?
- What does .container.\31 25\25 mean in CSS?
- What is the difference between :before and ::before?
- What is the difference between pseudo-classes and pseudo-elements?
- Shorten verbose CSS that repeats combinations of elements and pseudo-classes