0

I am trying to set a Background Image which is a URL: https://homepages.cae.wisc.edu/~ece533/images/airplane.png

When i try like below it is not working

body {
  background-image: url("https://homepages.cae.wisc.edu/~ece533/images/airplane.png");
  background: linear-gradient(red, pink);
}
Penny Liu
  • 15,447
  • 5
  • 79
  • 98
Abdul Azeez
  • 63
  • 3
  • 9
  • first duplicate to explain how to use multiple background, second duplicate to explain the strange repeat of the gradient – Temani Afif Mar 24 '20 at 08:56

2 Answers2

1

You need to combine the two within background-image:

body {
 background-image: 
   linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(117, 19, 93, 0.73)),
   url("https://homepages.cae.wisc.edu/~ece533/images/airplane.png");
 background-size: cover;
}
Anurag Srivastava
  • 14,077
  • 4
  • 33
  • 43
0

The second line background: linear-gradient(red, pink); is overriding the first one. I don't know what exactly you want to do, but remove the second line or group them like in the other answer.

KastenBrot
  • 87
  • 2
  • 13