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 [css-d@lists.css-discuss.org]
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