Design Groups wrote:
>>> Why would someone use a class instead of an id on body?<<
> 
> Christy -
> 
> The first thing I thought of off the top of my head were navigational links. 
> I'm sure there's other reasons out there, but I recently did a site where I 
> had to apply a body class because the client wanted "tabbed navigation".  I 
> used a system where, based on the class of the body in question, it would 
> display the "submenus" for the correct tab.

That same method can be used with IDs on the body tag as well. In fact, 
the argument for using IDs is that they would have a greater specificity.

Class might be used over ID (on the body tag) where an ID is already 
specified for that tag (to trigger other properties that maybe are 
shared by more than one page layout). Since you can only have on ID on 
the element, a class might be used to trigger the menu properties.

HTH
Donna Casey


______________________________________________________________________
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/

Reply via email to