Consider the following markup:
After the usual cluelessness indicator, a fullquote that quotes even the
sig, you can hardly expect your message to be considered very seriously. But
this is Usenet, and often you get much better responses than you deserve.
<div id="SiteHead" class="SiteHead">
<div class="Center">
<div>
<div>
<div id="SiteBody" class="SiteBody">
<div class="Center">
<div>
<div>
You did not bother posting valid (or even "well-formed") markup or markup
that makes sense. Why would you use extra <div> with a presentation-oriented
class name ("Center"), instead of just assigning styles to the "SiteHead"
and "SiteBody" elements?
Then I have the following styles:
div.SiteHead {}
div.SiteHead div.Center {}
div.SiteBody {}
div.SiteBody div.Center {}
Rather dummy, aren't they? Do you have a _real_ page with a real URL that
demonstrates what you are really doing and what your real problem is,
really?
But if I give id's to Center div's then I would need to do something
as SiteHeadCenter and SiteBodyCenter so they don't have the same id's.
If you assign an id attribute to an element, you must make sure it's
distinct from the id attribute of any other element in the document. Is this
what you are saying? Well, that's more or less the whole point, the idea,
and the heart of the matter in using an id attribute.
But this seems redundant as the only thing I am trying to do is
styling both center div's ...
So what are you complaining about? If you think you won't need id
attributes, and you don't care about anyone else needing them on your pages,
why would you use them? If there is a need for them, the need, if real,
implies need for uniqueness.
This is what I am trying to figure out so I follow a common procedure.
Sense your statement does not make. Great confusion in your mind is. Explain
your real situation you need.