What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » CSS - id vs class

CSS - id vs class
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: CSS - id vs class
IDs have to be unique, there can only be one element in the document tree with a certain ID. Classes can be used multiple times throughout the tree and you can apply any amount of classes on one element.

In practice, you'd use IDs for unique things in your layout such as #page-container, #header, #content, #sidebar and #footer whereas classes can be used for things which are used more than once like .post, .comment, .alignright, .smallicon etc. At least, that's how I use them. :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-08-2009 06:40 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CSS - id vs class - by stoshrocket on 06-08-2009 at 06:23 PM
RE: CSS - id vs class - by Eljay on 06-08-2009 at 06:26 PM
RE: CSS - id vs class - by gif83 on 06-08-2009 at 06:31 PM
RE: CSS - id vs class - by Matti on 06-08-2009 at 06:40 PM
RE: CSS - id vs class - by stoshrocket on 06-08-2009 at 07:46 PM
RE: CSS - id vs class - by NanaFreak on 06-08-2009 at 08:50 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On