Prev | Current Page 102 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


  • It matches elements regardless of type.


  • This is an immediate child of the division.


    The selector div * em will match the following em elements:
    ?–  ???Universal??? in the h1 element (* matches the

    )
    ?–  ???emphasize??? in the p element (* matches the

    )
    ?–  ???not??? in the first li element (* matches the

      or the
    • )
      ?–  ???type??? in the second li element (* matches the
        or the
      • )
        However, it won??™t match the immediate element, since that??™s an immediate
        child of the div element??”there??™s nothing between
        and for the * to
        match.
        Compatibility
        Selector Reference
        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
        Full Full Full Full Full Full Full Buggy Buggy Buggy
        Internet Explorer versions up to and including 6 exhibit the star HTML selector
        (p. 400) bug: selectors that should fail, don??™t. A descendant selector, such as * html,
        shouldn??™t match any elements, because the html element is the top-most parent
        element and, as such, it can??™t be a descendant of any other element.


        Pages:
        90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114