Technically, ids should only be declared once in a page, and classes can be
repeated as many times as necessary. So I would declare page structure with
ids and elements within as classes. If you have a button (for example) that
is repeated many times in a page use a class.

If you use Tidy (I use Safari Tidy) and repeat an id in a page it'll throw
up a warning.

There's more info here...

http://creativebits.org/webdev/div_id_vs_div_class

> Why should class be used to define an element vs. id?  I'm sure each one
> should be used in different situations, and would like more information
> on making the right choice.  Do child elements inherit properties from
> there parent class?  from there parent id?  Any links to information on
> this topic would be much appreciated.
> 
> Kind Regards,
> Travis Killen
> 936 Web Design
> http://936webdesign.com


______________________________________________________________________
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