-1
<div>
  background image with gradient goes here
</div>

div{
background: rgb(0,170,175);
background: linear-gradient(90deg, rgba(0,170,175,1) 0%, rgba(0,170,175,1) 35%, rgba(0,170,175,0.28) 100%);
background-image: url('https://cssgradient.io/images/css-gradient-swatches-a67daaf7.svg');
}
Johannes
  • 64,305
  • 18
  • 73
  • 130

1 Answers1

0

You can combine a gradient and a background image by putting them into the same (not seperate) background setting, separated by a comma:

div{
height: 400px;
background: linear-gradient(90deg, rgba(0,170,175,1) 0%, rgba(0,170,175,1) 35%, rgba(0,170,175,0.28) 100%), url('https://cssgradient.io/images/css-gradient-swatches-a67daaf7.svg');
}
<div></div>
Johannes
  • 64,305
  • 18
  • 73
  • 130