I apologize if this is the wrong group, but my usenet provider doesn't
carry any CSS-specific groups, and people in this group are likely to be
CSS experts anyhow.
My question is this:
In HTML, the "id" attribute of an element can legally contain a colon
character (":"). In a CSS declaration, how is this distinguished from a
pseudoclass specifier?
For example, if I have the following element
<strong id="Foo:Bar">something</strong>
And the following CSS to style it:
strong#Foo:Bar
{
some-rule: some-value;
}
It seems like the browser would think I'm trying to use a "Bar"
pseudoclass for the selector "strong@Foo".
So is it a bad idea to use colons in an element id, even though they're
perfectly legal? Is there some other way to specify this in CSS?
Thanks,
Jeremy