Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why expected 1px bold for background color? [duplicate]

This is my sass:

table#orders {
    background-color:#ff0000;
}

However, when I actually run this, I got an error saying Invalid CSS after "#ff0000": expected expression (e.g. 1px, bold), was ";" I don't know why it is expecting something like 1px for background-color. Can anyone help me figure it out?

like image 818
OneZero Avatar asked Nov 05 '13 15:11

OneZero


Video Answer


1 Answers

probably your sass file extension is *.sass, change to *.scss

*.sass has different syntax, that's why it throws these "crazy" errors.

*.scss support normal css synthax, like yours

if you got interested to learn about these syntax, we have a good question about this:

What's the difference between SCSS and Sass?

like image 94
Wagner Leonardi Avatar answered Nov 14 '22 23:11

Wagner Leonardi