Jack wrote:

>This is a question that I am curious about, I normally layout 
>everything with #idname but I've noticed here and there different 
>tutorials using div.classname instead for positioning.

>Both seem to work, the class system seems to work easier, can anyone 
>explain the positives and/or negatives to either or both approaches?

Jack, I think we covered this recently on here but just to recap, ID's
are used for elements or components of the screen that are unique, for
example if you have a containing DIV for your header, and it only
appears once, then this should be an ID.

If you have an element that appears many times, then it should be a
class. You can have multiples of the same class on one page, but ID's
should always be unique. I'll leave it to some of the more hardcore
experts on here to give you detailed reasoning's into why that is, but a
document will not validate with multiple uses of the same ID.

Stu 
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to