|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Junior Member Join Date: Dec 2006
Posts: 12
![]() | 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 |
| |
|
| |||||||
| | #2 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | #3 | |
| Junior Member | Quote:
ya he is right u sud always use class u avoid complications | |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|