Prev | Current Page 124 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


See CSS Layout and Formatting (p. 139) for more information about the DOM.
79 Selector Reference
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
Buggy 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.
In Internet Explorer 6 and 7, this selector will also select some inappropriate SGML
elements such as the doctype declaration and comments.
In Opera 9.2, this selector will also match any recognized processing instructions.
Selector Reference
General Sibling Selector
E~F {
declaration block
}
The general sibling selector is available
in CSS3, and the combinator used in
this selector is a tilde character (~).
The selector matches elements that are
siblings of a given element.


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