Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 12-08-2006, 03:36 AM   #1
http
Junior Member
 
http's Avatar
 
Join Date: Dec 2006
Posts: 12
http will become famous soon enough
Default Class in CSS and id?

Hi,
can anyone give a good explanation in the difference between an id and a class in CSS I've found that I can really use them interchangeably.. so is there a right time to use one or the other?

Thanks
http is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 12-08-2006, 04:12 AM   #2
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: Class in CSS and id?

Class is what you use when you are going to reuse the CSS. ID is what you use if you are only going to use it once. I never use ID, I try to keep it simple so I just use CLASS elements.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 01-30-2007, 12:19 PM   #3
smilemaker
Junior Member
 
smilemaker's Avatar
 
Join Date: Jan 2007
Location: http://www.gofiresale.com
Posts: 89
smilemaker will become famous soon enough
Send a message via Yahoo to smilemaker
Default Re: Class in CSS and id?

Quote:
Originally Posted by jumpenjuhosaphat View Post
Class is what you use when you are going to reuse the CSS. ID is what you use if you are only going to use it once. I never use ID, I try to keep it simple so I just use CLASS elements.

ya he is right u sud always use class u avoid complications
smilemaker is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.