RSS

Tag Archives: Cross browser gradient

Cross browser gradient

background: #f4f4f4; /* Old browsers */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f4f4f4',GradientType=0 ); /* IE6-9 */
background: -moz-linear-gradient(top,  #ffffff 20%, #f4f4f4 70%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f4f4f4)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* IE10+ */
background: linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* W3C */
Advertisements
 
Leave a comment

Posted by on April 12, 2012 in CSS

 

Tags: ,