It's so you can write different styles for the different sections of
the site.
.section_products #sub div.section { ... }
.section_about #sub div.section { ... }
It's also useful when it comes to highlighting links in navigational
menus.
.section_products #nav_main li.products a { ... }
.section_about #nav_main li.about a { ... }
(where "section_products" or "section_about" is the class applied to
body)
Hope this helps
B
On 30 Sep 2007, at 16:50, Don Stefani wrote:
> While testing out a web building IDE I noticed this about the
> generated CSS:Putting
> a class in the body tag and then using that to preface every
> declaration in
> the style sheet.
>
> IE:
>
> .bodyClass #header #nav #navlist { ...
>
> Is this done to insure that older browsers will follow the path to the
> markup and css?
>
> Thanks,
>
> - Cogster
> ______________________________________________________________________
> 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/