The combinator for this selector is the tilde character (~). The
General Sibling Selector targets an element that is a sibling of another element - that is, they have the same parent. However, in the General Sibling Selector, the first selector must appear before the second selector in the (X)HTML document.
Example:
p ~ ol {border: solid 1px black;}
The General Sibling Selector is ignored by IE6
No comments:
Post a Comment