Hi there, I wonder if anyone can help? I'm trying to validate a style sheet and I've managed to get rid of the errors and warnings I had, but the style sheet still isn't valid. I get this message:
To work as intended, your CSS style sheet needs a correct document parse tree.
This is the decleration on all of the pages - when I check at W3C, all pages are valid:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
I'm using W3C css validator to browse for the files on my computer and check them. I don't what know what you mean by 'save the source . . . . . /whatever'!?
Can you advise a bit more? Or you Benjitastic? Thanks for trying, Brian.
"To work as intended, your CSS style sheet needs a correct document parse tree."
That isnt an error message. If that is the only thing showing your page is fine. It's just advising that even though the CSS is valid for it to work properly you still need a valid document for it.
I finaly found out why the W3C CSS validator is so anal about foreground and background colours: "In order to avoid conflicts with user style sheets, it's considered good practice to specify a background color for every rule that contains a foreground color (and vice versa). Although the majority of visitors to your site don't use their own style sheet, those that do may do so for reasons of accessibility, so failing to accomodate them may make your site inaccessible."
I PRODUCE LARGE VOLUMES OF PORK-BASED FOOD PRODUCTS!
six pastel try putting your style sheet in directly into the validator I have had the same problem using the url method, feel free to e-mail me if you have any questions at all jamessablan@yahoo.com also here is a project I just posted here the other day it may help also: http://uhwwd.t35.com/wd101.html - Web Devlopment 101 is what I call it. I put it together to help everyone, let me know what you think. Look forward to hearing form you and most of all thank you for your valuable time.
Webmaster and Developer at Under His Wings Web Design James A. Sablan Sr. my Business e-mail: webmaster@uhwwd.zzn.com