Posted By

simondiercks on 11/10/10


Tagged

css ie6 ie7 gradient


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

shabbar
stamba
pytheas
maltem
passion
robmcalister


Cross-Browser CSS Gradient


 / Published in: CSS
 

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

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

Report this snippet  

You need to login to post a comment.