:first-child
and :last-child
, along with complimentary compatibility chart.
:first-child
is supported IE9 properly, and IE7 and IE8 sort of (see chart).
:last-child
is supported by IE9+ only.
Both of them are supported well by the good browsers.
More Related Contents:
- Can I combine :nth-child() or :nth-of-type() with an arbitrary selector?
- How do I select the “last child” with a specific class name in CSS? [duplicate]
- How can I write a ‘:hover’ condition for ‘a:before’ and ‘a:after’?
- Browsers’ default CSS stylesheets
- How to combine class and ID in CSS selector?
- :first-child not working as expected
- What is the difference between :first-child and :first-of-type?
- Does CSS have a :blur selector (pseudo-class)?
- Specify multiple attribute selectors in CSS
- Should I use single or double colon notation for pseudo-elements?
- How to make Internet Explorer 8 to support nth child() CSS element?
- Universal selector * and pseudo elements
- How to only show certain parts with CSS for Print?
- Why use an attribute selector to match classes?
- CSS selector to get deepest element of specific class in the HTML tree
- Can type selectors be repeated to increase specificity?
- CSS Specificity and Inheritance
- The use of /deep/ and >>> in Angular 2
- Select nth-child across multiple parents
- Vertically centering content of :before/:after pseudo-elements
- Difference between the selectors div + p (plus) and div ~ p (tilde)
- Are CSS selectors case-sensitive?
- Can you target an element with CSS only if 2 classes are present?
- CSS combinator precedence?
- What is caret symbol ^ used for in css when selecting elements?
- What is the difference between p:nth-child(2) and p:nth-of-type(2)?
- CSS specificity or inheritance?
- What is the difference between pseudo-classes and pseudo-elements?
- Shorten verbose CSS that repeats combinations of elements and pseudo-classes
- filter: blur(1px); doesn’t work in Firefox, Internet Explorer, and Opera