Previous Message
Next Message

Stylesheets validate OK, but not with a HTML file

Sent by Holly Bergevin on 18 November 2004 07:07


From: John Zaitseff [EMAIL-REMOVED]>

 The problem is that I have a couple of
>stylesheets which validate correctly using the W3 CSS Validator
>(http://jigsaw.w3.org/css-validator/).  When combined with a valid
>XHTML file, however, they no longer validate!
   http://www.zap.org.au/~john/web/sinorcaish/sinorcaish-screen.css
   http://www.zap.org.au/~john/web/sinorcaish/sinorcaish-print.css
>
>Sample XHTML page:
>    http://www.zap.org.au/~john/web/sinorcaish/sample.html

>Errors
>======
>URI: http://www.zap.org.au/~john/web/sinorcaish/sinorcaish-print.css
>
>    Line: 0 
>    Parse Error - : none !important; } .notprinted 
>
>    Line: 0 
>    Parse Error - : 0 0 0.5em 0; } #main .highlight 

I agree that these two are very strange. The validator is taking the last part of one rule set and
the selector from the next and saying that they're causing a parse error. The only thing I can think
is that all the space (which isn't causing problems elsewhere) could be causing it? Perhaps there
are some invisible characters in there??? Weird... 

>URI: http://www.zap.org.au/~john/web/sinorcaish/sample.html
>
>    Line: 44
>    Context: div.nb-htmlsampler-fixup 
>    Invalid number: margin-rightinherited is not a margin-right
>                    value : inherited

This one, however, which is embedded in your HTML page, is an actual error. You have {margin-right:
inherited;} The value you want, and that you've used everwhere else, is - {margin-right: inherit;}
without the suffix 'ed' that is there now. 

hth,

~holly 
 
                   
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Possibly related: