<div class="gmail_quote">2011/3/3 Nat Meysenburg <span dir="ltr"><<a href="mailto:nat@openflows.com">nat@openflows.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
It is not an either or proposition, you can use both ids and classes on<br>
elements. Generally, it is a good idea to do both. Drupal code by<br>
default does on many things.<br>
<br>
In your case for instance you would want something like <div id="menu-1"<br>
class="menu-bar", <div id="menu-2" class="menu-bar".<br>
<br>
Then you can do .menu-bar for general styles and #menu-1 for styles<br>
specific to that menu.<br>
<br>
Hope that is helpful,<br>
~~nat<br>
_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
</blockquote></div><br>There are different opinions about the use of ids or classes, even among the major designers.<br>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).<br>
Instead, it's better to use classes for blocks of content or tags that behave the same way (.node, .block, .inner...)<br>For instance:<br><br><div id="page"><br> <div id="column1" class="float-left"></div><br>
<div id="column2" class="float-left"></div><br clear="all"> <div id="column2" class="float-left"></div><br> <div id="footer" class="easyclear"></div><br clear="all">
</div><br clear="all"><br>-- <br>~ Cristian Palmas ~<br><a href="http://www.cristianpalmas.it">http://www.cristianpalmas.it</a><br><br>Chi vuole davvero realizzare i propri sogni, si sveglia all'alba<br><br>One who really wishes to realize his own dreams, wakes up at dawn<br>