Prev | Current Page 136 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


  • This item does not match that selector.

  • Neither does this one.


  • Only the first list item element is matched.
    Note that this pseudo-class only applies to elements??”it doesn??™t apply to anonymous
    boxes (p. 164) generated for text.
    Compatibility
    SPEC
    CSS1
    BROWSER SUPPORT
    Op9.2+ Saf1.3+ FF1+ IE7+
    BUGGY BUGGY BUGGY BUGGY
    Opera Safari Firefox Internet Explorer
    9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
    Buggy Buggy Buggy Buggy Buggy Buggy Buggy Buggy None None
    7 To perform that match, you can use li>*:first-child.
    In Internet Explorer 7 some SGML constructs, such as comments, are counted as
    elements.
    Internet Explorer 7, Firefox versions up to and including 2, Safari versions up to
    and including 3, and Opera 9.2 continue to select an element as the first child even
    when another element is dynamically inserted before it.
    Internet Explorer 7 and Firefox select the first SGML construct on the page (usually
    the doctype), even though it??™s not a child of another element.


    Pages:
    124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148