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

RSS Icon Subscribe to comments

You need to login to post a comment.