Combining image and gradient in an element\'s background


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. .element {
  2. background-image: url(image.png), -moz-linear-gradient(top, #fff, #000);
  3. background-image: url(image.png), -webkit-gradient(linear, left top, left bottom, from(#fff), to(#000));
  4. }

Report this snippet


Comments


You need to login to view comments.