2011/3/3 Nat Meysenburg nat@openflows.com
It is not an either or proposition, you can use both ids and classes on elements. Generally, it is a good idea to do both. Drupal code by default does on many things.
In your case for instance you would want something like <div id="menu-1" class="menu-bar", <div id="menu-2" class="menu-bar".
Then you can do .menu-bar for general styles and #menu-1 for styles specific to that menu.
Hope that is helpful, ~~nat _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
There are different opinions about the use of ids or classes, even among the major designers. Anyway, in general, if you have to identify a specific block of content or tag, it's more useful to use ids. Use meaningful names for semantic reasons (#article, #aside, #navbar or #nav, #navigation). Instead, it's better to use classes for blocks of content or tags that behave the same way (.node, .block, .inner...) For instance:
<div id="page"> <div id="column1" class="float-left"></div> <div id="column2" class="float-left"></div> <div id="column2" class="float-left"></div> <div id="footer" class="easyclear"></div> </div>