Travis Killen wrote:
> Why should class be used to define an element vs. id?  
You use ids for unique page elements.

ie:

id="contentWrapper"
id="mainNav"
id="inbox"

You use classes for styling similar elements.

ie:

class="externalLink"
class="topItem"
class="message"

However, you only need an id / class where there's no other way to 
distinguish an item. If you only have 1 form under "contentWrapper" you 
don't need to give it an id / class too.

hth

-- 
Thanks,

Jim

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

Reply via email to