Reputation: 361
here is my scss code:
.banner {
height: 170px;
width: 100%;
background-color: linear-gradient(45deg, red, blue); //not work
// background-color: red; // <-this works
}
I don't know why, I copied the linear-gradient code from MDN, it should not wrong..
Upvotes: 0
Views: 1468
Reputation: 56
seems not to be a problem of Scss but of css
remove the -color
, its just background
background: linear-gradient(45deg, red, blue);
Upvotes: 4