Cross-Browser CSS Gradient

25 Sep

CSS CODE: Gradient

SUPPORT((Firefox,Internet Explorer,Chrome,Safari,Opera,Netscape Navigator)

background: #1e5799; /* Old browsers */

background: -moz-linear-gradient(top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color-

stop(51%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */

background: -webkit-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */

background: -o-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Opera 11.10+ */

background: -ms-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* IE10+ */

background: linear-gradient(to bottom, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#1e5799′, endColorstr=’#7db9e8′,GradientType=0 ); /* IE6-9
*/

Referred by :
OR
#Gradient_button{/* fallback */
background-color:#063053;/* chrome 2+, safari 4+; multiple color stops */
background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0.32,#063053),color-stop(0.66,#395873), color-stop(0.83,#5c7c99));

/* chrome 10+, safari 5.1+ */
background-image:-webkit-linear-gradient(#063053,#395873,#5c7c99);

/* firefox; multiple color stops */
background-image:-moz-linear-gradient(top,#063053,#395873,#5c7c99);

/* ie 6+ */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#063053′, endColorstr=’#395873′);

/* ie8 + */
-ms-filter: “progid:DXImageTransform.Microsoft.gradient(startColorstr=’#063053′, endColorstr=’#395873′)”;

/* ie10 */
background-image: -ms-linear-gradient(#063053,#395873,#5c7c99);

/* opera 11.1 */
background-image: -o-linear-gradient(#063053,#395873,#5c7c99);

/* The “standard” */
background-image: linear-gradient(#063053,#395873,#5c7c99);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: