> > Both the CSS and XHTML are valid. Here's the link to the page:
> > 
> > http://chnm.gmu.edu/history120/new/nav-test.html
> 
> this is the ruleset for your current state
> 
> #pre18thcentury a#nav-pre18,
> #18thcentury a#nav-18,
> #19thcentury a#nav-19,
> #20thcentury a#nav-20 {
> background-position:0 -40px;
> }
> 
> this is what Firefox Java script console says:
> 
> "Error: Expected identifier for ID selector but found '#18thcentury'. 
> Ruleset ignored due to bad selector.
> Source File: http://chnm.gmu.edu/history120/new/nav-test.html
> Line: 85"

You cannot define your IDs using numbers as the first character.

>From W3C:

"In CSS 2.1, identifiers  (including element names, classes, and IDs in
selectors) can contain only the characters [A-Za-z0-9] and ISO 10646
characters U+00A1 and higher, plus the hyphen (-) and the underscore (_);
they cannot start with a digit."

Change those to something like #eighteenthcentury and that should correct
the problem.

Regards,
Ron
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to