Posted By

polly42 on 12/15/10


Tagged

css cross-browser gradient


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

AtticBoy
kwameboame


Cross-Browser CSS Gradient


 / Published in: CSS
 

URL: http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/

  1. .gradientBox {
  2. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
  3. background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */
  4. background: -moz-linear-gradient(top, #ccc, #000); /* for firefox 3.6+ */
  5. }

Report this snippet  

You need to login to post a comment.