CssCop - FxCop for Stylesheets


CSSCop helps you write better and more browser compatible stylesheets. It uses the CSS Lint (csslint.net) rules engine and is completely customizable.

(9) Review
Visual Studio
2013, 2012, 2010, 14
Download (39,117)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (9)
Q and A (9)
Sign in to write a review
Sort by:

by Waqas M | February 08 2013

Nice css

by Agus.Syahputra | May 05 2012

by Sofwarer | May 01 2012

by György Balássy | April 23 2012

Very useful, thanks Mads!
Direct warning suppression (the XML file is a bit difficult to discover, but very good TFS-friendly) and help links would be great.

by Shion_ | April 05 2012

Very nice tool.
The feature of turning special rules on or off is great!

Thanks a bunch. :)

by Hosam Kamel | January 02 2012

An innovated idea indeed

by Blazingware | December 23 2011


by Dzmuh | December 14 2011

by Sayed-Ibrahim-Hashimi | December 10 2011

This is my favorite cop.

Sign in to start a discussion

  • VS2012?
    6 Posts | Last post June 30, 2014
    • Will this be updated to include VS2012?
    • Any word on this?
    • I'd be keen to see this, too.
    • I see a lot of these features in VS2012 and Web Essentials 2012 - however not all. 
      Will these come for VS12?
    • 2014.06.30 Installing CssCop skipped VS2012.  It correctly detected and installed for VS2010 and VS2013.  I can probably get by switching IDE versions as necessary.  Puzzling to me.  Curious what is the difference and the reason for the gap with VS2012.
    • However, the CssCop installed in VS2012 even though the installer did not mention it.  CssCop seems to be working fine in VS2012.  :)
  • Run CssCop on all Css files at build time
    1 Posts | Last post September 05, 2013
    • Are there any plans to make this more like stylecop where it is more integrated with the build.   Basically enabled in the project and automatically runs on building.  Configuration for errors vs warnings part of the project settings?
      We are just starting to run this tool and really like it, however relying on our entire team to run it manually wont work.  
    3 Posts | Last post June 19, 2013
    • Hello!
      There is the following error when I try to use it:
      Microsoft Visual Studio
      The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
      the installation  seemed to good, (I have un-installed and installed again, but nothing  changed)
      Thanks, bts
    • I just installed the extension (1.2) in VS2010, and I get the same error when I try to use it.
    • I just tried version 1.4 and I still have the E_INVALIDARG error. I am using Windows 7 64bit with IE 10.
  • box-shadow etc.
    2 Posts | Last post September 05, 2012
    • How can newer CSS items such as box-shadow be added?
      Currently the usage of newer CSS statements gives an error.
      Even the newest IE (V10) knows many newer css items without prefix.
    • After updating "Web Standards Update for Microsoft Visual Studio 2010 SP1" to the newest version, CssCop now knows how to handle box-shadow - great!
  • VS2012 RTM
    1 Posts | Last post August 21, 2012
    • Am I missing something. Did the features make the RTM? If so how can you activate them.
  • Turn off some rules
    1 Posts | Last post April 08, 2012
    • Is there any way to customize the rule set or supress warnings as I can do with Code Analysis? I would not like to see warnings of overqualification. Thank you.
  • Duplicate background images
    1 Posts | Last post February 23, 2012
    • This rule does not seem available, duplicate-background-images - how easily could this be added?
      Thanks in advance
  • URI formats are not supported.
    3 Posts | Last post December 21, 2011
    • What does this error mean? Any way around it?
    • This means that when you open a website from IIS Express (could be http://localhost:1234), then there is a bug in CSSCop that tries to resolve a file name based on the URL of the project. It has been fixed already, but I'm waiting a few days to release the update.
    • Thanks a lot. It works now.
      Two things:
      Is there a place where all the error messages are explained? 
      For example, I get "You have 2 h2s, 2 h3s defined in this stylesheet." Why is this bad?
      Is it possible to enable, disable some errors?	
  • Is IE9 necessary?
    7 Posts | Last post December 14, 2011
    • This looks like a great tool.  I've passed a file through the csslint.net website which gave great feedback on issues I wasn't aware of.  Having this available via VS would be a real bonus.  I'm running VS 2010 on XP SP3 and I cannot see why such a simple tool (in terms of requirements) needs IE 9.  Any chance the IE 9 dependency could be removed.
    • The reason for IE9 is that CSSCop uses the IE engine to execute the official JavaScript from csslint.net. Right now I'm investigating why an error is thrown when you only have IE8 installed. Hopefully, it's a minor thing that can be fixed so the IE9 requirement becomes an IE8 requirement.
    • Don't work in ASP Net MVC 3 - Razor . *.cshtml
    • PTarso, correct. It only looks at .css files at the moment.
    • Michael, version 1.1 fixes the IE9 dependency issue. I've tested it on IE8 and it works.
    • Mads,  I've just downloaded and installed this into VS 2010.  It works a treat.  Thanks for downgrading the dependency to IE 8.
    • I had to manually add the indexOf method to the JavaScript Array's prototype for it to work in IE8. Simple fixes are always the best :)