Add your website to the Xemion web designer directory and gain highly-targeted traffic and new leads.

ID's or Classes

Post Reply
 
Thread Tools
 
#1 September 19, 2007 by Talks_44 - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
Personally, I rarely use ID's. Older versions of Netscape handle classes, but not ID's. I see no reason why #content can't be .content. The only exception for me is if I'm using JavaScript and don't want to do a getElementByClassName function.
 
#2 September 24, 2007 by flann - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
well, IDs can only be used once on a page and classes can be used multiple times. Lets say you have 3 text boxes, you can put a class in them to format them all the same and in each put a unique id in case you need to get the specific value from one of them.
 
#3 September 24, 2007 by Talks_44 - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
Thx mate fore sharing the info
Post Reply

Thread Tools