Archive | css RSS feed for this section

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

CSS CODE : Border-Radius

26 Jul

CSS CODE : Border-Radius

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

-moz-border-radius: 2px 2px 2px 2px;
-webkit-border-radius: 2px 2px 2px 2px;
-o-border-radius: 2px 2px 2px 2px;
-ms-border-radius: 2px 2px 2px 2px;
-khtml-border-radius: 2px 2PX 2PX 2PX;
border-radius: 2px 2px 2px 2px;

CSS CODE : Shadow (cross-browser support)

26 Jul

CSS CODE: SHADOW

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

-moz-box-shadow: 0 0px 7px rgba(0, 0, 0, 0.15);
-webkit-box-shadow: 0 0px 7px rgba(0, 0, 0, 0.15);
box-shadow: 0 0px 7px rgba(0, 0, 0, 0.15);
-o-box-shadow: 0 0px 7px rgba(0, 0, 0, 0.15);
-ms-box-shadow: 0 0px 7px rgba(0, 0, 0, 0.15);

OR
-moz-box-shadow: 0 0 2px 0;
-webkit-box-shadow: 0 0 2px 0;
-o-box-shadow: 0 0 2px 0;
-ms-box-shadow: 0 0 2px 0;
box-shadow: 0 0 2px 0;

CSS: Cross-Browser(For Border)

26 Jul

Border (Firefox,Internet Explorer,Chrome,Safari,Opera)

-webkit-border-radius: 6px 6px 6px 6px;
-moz-border-radius:6px 6px 6px 6px;
border-radius:6px 6px 6px 6px;
-o-border-radius:6px 6px 6px 6px;
-ms-border-radius:6px 6px 6px 6px;