Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected token in CSS when editing it in vnext

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.

like image 885
user928770 Avatar asked Sep 15 '11 13:09

user928770


1 Answers

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

like image 136
nemetroid Avatar answered Oct 21 '22 01:10

nemetroid