Shinji035
Shinji035

Reputation: 361

linear-gradient not working in Angular 8 with scss

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

Answers (1)

user3844834
user3844834

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

Related Questions