What Was I Thinking?

Follies & Foils of .NET Development

  Home  |   Contact  |   Syndication    |   Login
  74 Posts | 0 Stories | 192 Comments | 0 Trackbacks

News

Archives

Post Categories

Check These Out

Gurus

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

image

3. Click OK

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Monday, March 17, 2008 5:03 PM

Feedback

# re: QuickTip: Turn off CSS Validation Errors 7/21/2009 10:54 PM Nick
>> 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

# re: QuickTip: Turn off CSS Validation Errors 2/12/2010 2:22 PM VS2K8SUX
too bad neither of those settings changes actually work.
There must be a thousand bugs in VS2008! UGH!

# re: QuickTip: Turn off CSS Validation Errors 3/29/2011 3:48 PM bjt
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?

# re: QuickTip: Turn off CSS Validation Errors 12/14/2011 10:30 AM Tolu Bewaji
Try closing the window containing the CSS before building/publishing. Worked for me!

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: