View Full Version : W3 CSS Validation
Cagez
March 16th, 2003, 21:46
To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.
I keep getting this message when I validate my CSS, it says no errors or warning just this... What does it mean? I want my "Valid CSS" button! :p
CareBear
March 17th, 2003, 06:14
As far as I know it's more of a 'reminder' then an error or a warning. Just something that will always show up in a report to remind you that valid CSS with invalid HTML serves no purpose.
Cagez
March 17th, 2003, 16:00
But it doesn't come up with that "This is Valid CSS!" and gives the code for the button. My XHTML says that...
CareBear
March 17th, 2003, 18:53
are you validating a css file directly or through a reference in a (X)HTML document? That might be why it's complaining.
I even looked through the W3C's site.. it says it's just a reminder numerous times :confused2
Cagez
March 17th, 2003, 19:02
I'm validating it via the uploading the CSS file.
http://www.w3schools.com/css/default.asp
See there at the very bottom of the page there the W3 CSS checkmark button, whenever somehting passes the validation, its suppost to give you the HTML to insert it into you page as a show off piece...
Has anyone else tried it and got right page?
CareBear
March 17th, 2003, 19:11
Originally posted by Cagez
I'm validating it via the uploading the CSS file.There's your problem :)
Upload it to a host and then run it through the validator again.
And btw:
This document validates as CSS!
To show your readers that you've taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:
<p>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!">
</a>
</p>
If you like, you can download a copy of this image to keep in your local web directory, and change the HTML fragment above to reference your local image rather than the one on this server.
If you would like to create a link to this page (i.e., this validation result) to make it easier to re-validate this page in the future or to allow others to validate your page, the URI is:
http://jigsaw.w3.org/css-validator/validator?uri=http://jigsaw.w3.org/css-validator/style/error.css
or http://jigsaw.w3.org/css-validator/check/referer (for HTML/XML document only)
(Or, you can just add the current page to your bookmarks or hotlist.)
To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.It's there even if the CSS validates.. told you so :p
Cagez
March 17th, 2003, 20:54
<edit />
Thank you, works!
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.