My goal is to allow the container context to style my "P", but not
inherit different styling when that container is nested in a different
one
> > ..panel2 .container-type2 .container-type1 p {
> > background-color: pink; /* this isnt working. */
> > }
> > ..panel2 .container-type1 .container-type2 p {
> > background-color: purple;
> > }
> It looks to me like your second statement is overriding the first.
>
> In the first statement, you've designated panel 2, both types of
> containers, to have pink backgrounds.
No. I've said that a P inside a container-type1 inside a
container-type2 inside a panel2 should be pink.
Whereas...
A P inside a container-type2 that is inside a container-type1 inside a
panel2 should be purple.
> Instead of marking the problem items with a letter, you should
> probably use a /*comment*/
Lost you here. 'p' is the element selector for the <p> element. Maybe
my example isnt clear. Thanks for taking a look though.
Sam
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/