The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Only one div id declaration per page....

After reading some of the threads here lately, not only have I been able to correct a great many of my CSS issues, but I have learned much in the process...

One thing I read in a recent thread is that you cannot have more than one div id per page - no repetitions. This is difficult for me to assimilate. For example, on my page (which many of you have helped me with - thanks!), I have some tables that are one TR in height and use only one TD as well, but are filled with up to 12 div's, some that have id #cell, and others that have id #cell_pkg (which, incidenly, did not parse in the validator - doesn't like the "_"?). I use those same id's because the are all positioned relatively and I achieve the layout I want. Also, the validator noticed my repeated use of the same div id's.

However, to be W3C compliant, do I need to specify a unique id to every div I put on my page? Sounds to me like I will have an incredibly huge style sheet!

Ducharme's Axiom:"If you view your problem closely
enough, you will recognize yourself as part of the problem."

So then...

Thanks for the replies...

So to be more compliant, I can use #div for the containers, and .class for the reoccuring content-handling stuff. Ok, think I have it now.

So then...

If I recode my div's so that the repetitive #cell and #cell_pkg id's are changed to .cell and .cell_pkg, I will validate? Also, is the underscore (_) a valid css character? Should I have .cellpkg instead of .cell_pkg?

Ducharme's Axiom:"If you view your problem closely
enough, you will recognize yourself as part of the problem."