Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change CSS Validation scheme in VS2010

I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example:

#my-rule {      position:relative; } 

generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name

I'm guessing that there is an option some where to change the CSS validation to CSS 2.1 or some thing close, but can't for the life of me find it.

like image 844
Gareth Davis Avatar asked Oct 14 '10 09:10

Gareth Davis


People also ask

How do I change CSS validation?

You have a dropdown in the top menu where you can switch the css validation. It's called Cascading stylesheet version for validation. If you can't see it right click on the menu and check Style sheet so it will show.

Can CSS be used for validation?

The W3C CSS Validation Service can be used to check the correctness (validity) of W3. CSS. The Validation Service was created by the W3C to help Web developers validate CSS.


2 Answers

If you want to validate for CSS 3.0 in Visual Studio 2010, you need to install the Visual Studio 2010 Service Pack 1 and then install the "CSS 3 Intellisense Schema"

http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions

Then you will see "CSS 3.0" in the drop down that easwee mentioned.

like image 141
Garry English Avatar answered Oct 01 '22 23:10

Garry English


You have a dropdown in the top menu where you can switch the css validation. It's called Cascading stylesheet version for validation. If you can't see it right click on the menu and check Style sheet so it will show.

screenshot

like image 32
easwee Avatar answered Oct 01 '22 23:10

easwee