On 12/7/06, Travis Killen <[EMAIL PROTECTED]> wrote:
> Using this method:
> #header #branding {
> border: 1px solid red;
> }
> you will assign a 1px solid red border to any div whose id is branding,
> AND is contained within the div header. ie - if you have more than one
> branding div then the CSS rule will only be applied if the branding div
> is contained inside the header.
>
Except, of course, it's illegal to have more than one element with the
same id in the same document.
Something like #header #branding makes the most sense if you have an
external stylesheet shared by multiple HTML pages, many of which have
an element with an id of "branding", and you want to apply certain
styles *only* when that "branding" element is inside of another
element with an id of "header".
--
Mark J. Reed <[EMAIL PROTECTED]>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- 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/