Unexpected token in CSS when editing it in vnext

user928770 picture user928770 · Sep 15, 2011 · Viewed 10k times · Source

When I try to write some css through Vnext or Webmatrix v2 beta I got error that unxpected token : sometime I change something and got error that unexpected error ;

When I try this

body
{
    background-color :Aqua;
}

I wonder all browser (moz,chrome) give me error that "Uncaught SyntaxError: Unexpected token :"

Later I save it from vs2010 but i still have error. Can someone tell me where I am doing wrong.

Answer

nemetroid picture nemetroid · Sep 15, 2011

The error suggests that you're trying to load your CSS as if it were Javascript.