CSS3 Gradients All Browsers


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



Copy this code and paste it in your HTML
  1. .gradient-bg {
  2. background-color: #1a82f7;
  3. background-image: url(images/fallback-gradient.png);
  4. background-image: -moz-linear-gradient(#2F2727, #1a82f7);
  5. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#1a82f7), to(#2F2727));
  6. background-image: -webkit-linear-gradient(#2F2727, #1a82f7);
  7. background-image: -o-linear-gradient(#2F2727, #1a82f7);
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.