Ju Hae Lee
Ju Hae Lee

Reputation: 65

How can I convert this from webkit to moz?

How can I convert this from webkit to moz?

background-color: #fff; 
background-image: 
-webkit-linear-gradient(0deg, transparent 79px, #ABCED4 79px, #ABCED4 81px, transparent 81px), 
-webkit-linear-gradient(#EEE .05em, transparent .05em);

Upvotes: 1

Views: 1850

Answers (1)

alex
alex

Reputation: 490253

To support most browsers...

background: -moz-linear-gradient(top,  rgba(171,206,212,1) 79px, rgba(0,0,0,0) 81px); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(79px,rgba(171,206,212,1)), color-stop(81px,rgba(0,0,0,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* IE10+ */
background: linear-gradient(top,  rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#abced4', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */

Obviously, the first line is the one with the moz vendor prefix.

You could also just wait until Firefox supports the webkit vendor prefix :P.

Upvotes: 4

Related Questions