Hi, Either method is correct but id's must be unique per document. Classes may be applied to multiple elements and instances in a single document, so in some instances a class offers more flexibility. I use id's as often as possible because I find them to be more human readable and because they produce, in my opinion, cleaner markup and a more logically structured stylesheet. Other benefits of using id's include easy identification of document sections, the ability to easily combine or override properties and values for an element using both an id and a class, higher specificity in the cascade, and finner control when working with JavaScript.
You can see an example of what I mean when I say cleaner and more readable code here: http://www.961media.com/temp/usingids.htm Damien McKenna wrote: > Which is the more correct method for calling CSS styles, to use the id > attribute or the class attribute? Can IDs be nested, e.g. #box #inside > #field {...}, like classes can be, e.g. table.box th.inside td.field {...}. Best regards, Michael Wilson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182042 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

