Prev | Current Page 121 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"



  • Item 1



    1. Subitem 2A

    2. Subitem 2B




Let??™s try to match elements in the above fragment with the selector below:
ul>li {
?‹® declarations
}
SPEC
CSS2
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL BUGGY
77 Selector Reference
The child selector above will only match the two li elements that are children of
the ul element. It will not match the subitems, because their parent is the ol element.
Compatibility
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 None None
In Internet Explorer 7, this selector fails if a comment appears between the
combinator and the simple selector that follows it.
If one of the simple selectors is missing, Internet Explorer 7 acts as if there were a
universal selector in its place, instead of failing as it should.
Selector Reference
Adjacent Sibling Selector
E+F {
declaration block
}
The adjacent sibling selector selects all
elements that are the adjacent siblings
of a specified element.


Pages:
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133