thank you, Philippe. That answers my question. 

I was "hoping" that the combinator could go upward in the document tree, but my 
experiments with that weren't working.    It was an off-the-wall bet that I 
could change styles based on whether another element were present in a 
neighboring document tree. Ultimately,this confirms that the sibling combinator 
doesn't work as an "aunt" or "uncle" combinator.





</email>
<signature id="paceaux">
                Frank M Taylor 
                http://frankmtaylor.com
                @paceaux
</signature>

On Nov 14, 2011, at 6:16 PM, Philippe Wittenbergh wrote:

> 
> On Nov 15, 2011, at 5:09 AM, Paceaux wrote:
> 
>> 1. Does the non-adjacent sibling  combinator ( ~ )only go in one directIon?
>>      If I attempt   .address ~ .newsletter, I can successfully style 
>> newsletter. 
>>      I I try .newsletter ~ .address, I cannot style newsletter
> 
> This combinator only works in one direction: downwards in the document tree 
> (as is always the case with CSS selectors so far - they never go 'up')
>> 
>> 2.  Is it possible to select a child of a sibling, like so:
>>      .newsetter > #nav_social ~ .address
> 
> That may work, assuming that both #nav_social and .address are descendants of 
> .newsletter.
> 
> As David suggests, a simple html test case would be helpful to understand 
> what you're trying to do.
> 
> Philippe
> --
> Philippe Wittenbergh
> http://l-c-n.com/
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> css-discuss [[email protected]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to