What Was I Thinking?

Follies & Foils of .NET Development
posts - 95 , comments - 352 , trackbacks - 0

QuickTip: Turn off CSS Validation Errors

I'm working on a prototype of a Single Sign On (SSO) solution for a web portal using Windows Cardspace as the authentication mechanism.  This means I've spent my weekend  developing web sites which may explain my foul mood.

I was applying some color attributes to some of my UI controls which rendered fine, but generated compiler errors because they were failing CSS Validation.  Since it renders without issue (even between browsers), I'm not sure why its an error at all.  In any event these errors were preventing me from continuing with my SSO server work.  Fortunately we can specify how to treat CSS validation errors during a build in visual studio.

1. Go to Tools -> Options -> Text Editor -> HTML -> Validation

2. Uncheck the Show Error option


3. Click OK

Print | posted on Monday, March 17, 2008 5:03 PM | Filed Under [ Visual Studio ]



# re: QuickTip: Turn off CSS Validation Errors

>> This comment is for the next Googling developer looking for help. <<

And it indeed helped someone. Thanks!

btw. turning both off significantly reduces compilation time
7/21/2009 10:54 PM | Nick

# re: QuickTip: Turn off CSS Validation Errors

too bad neither of those settings changes actually work.
There must be a thousand bugs in VS2008! UGH!
2/12/2010 2:22 PM | VS2K8SUX

# re: QuickTip: Turn off CSS Validation Errors

This is no longer the case...the option to turn off the control's errors is in the CSS/Validation section, not the HTML...times change and so do options, eh?
3/29/2011 3:48 PM | bjt

# re: QuickTip: Turn off CSS Validation Errors

Try closing the window containing the CSS before building/publishing. Worked for me!
12/14/2011 10:30 AM | Tolu Bewaji
Post A Comment

Powered by: