calmestghost.com | + share

Use Firefox: Spread Firefox Affiliate Button
bhadaway@gmail.com | subscribe

Socialize: Bryan Hadaway's LinkedIn Page Bryan Hadaway's Twitter Page Bryan Hadaway's Facebook Page Bryan Hadaway's MySpace Page
Signup for HostMonster

Automatic Method:

You should now simply use: http://jigsaw.w3.org/css-validator/check/referer?profile=css3

Manual Method:

Typically if you want to dynamically link to a W3C Valid CSS page, we use this link:

http://jigsaw.w3.org/css-validator/check/referer

That’s perfect if you’re using ALL CSS2.1 as that’s the default checker, but if you implement even 1 CSS3 style you’ll fail validation. So, we can no longer use the referer method until CSS3 becomes highly supported to the mainstream.

So, as a compromise, instead of linking our pages to the referer link, we’ll have to link our stylesheet to the CSS3 Validator like so:

(remember to use & amp; with no spaces between & and amp; in place of & so you don’t break XHTML Validation)

With a little PHP magic we could generate the current page URL dynamically in place of:

http://www.website.com/css/style.css

But, you might find this difficult from the footer.php, if someone could re-work the following code to work properly when using a dynamic footer.php file please share:

Thanks, Bryan

Bookmark and Share
Google Buzz
Tagged with:  

4 Responses to “How to Link to the W3C CSS3 Validation Page”

  1. Nice information, I really appreciate the way you presented.Thanks for sharing..

  2. Nice, I knew they would update it at some point. I’ll update the post, as this is definitely the best method now.

    But, no doubt my blog doesn’t validate ;) . WordPress isn’t even valid out-of-the-box.

    Thanks for the update.

    Thanks, Bryan

Leave a Reply

What is 7 + 9 ?
Please leave these two fields as-is:

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

    © 2010 BryanHadaway.com. All Rights Reserved. | Theme By: PageLines | Designed By: calmest_ghostDESIGN
    Proudly Powered By: WordPress | Articles (RSS) and Comments (RSS) | Valid XHTML
    preload