What will be Opera and IE alternatives of following code?
background-image: -webkit-gradient(linear, right top, left bottom, from(#0C93C0), to(#FFF));
background-image: -moz-linear-gradient(right, #0C93C0, #FFF);
Note, I’ve tested following rules. All browsers supports them. But they are vertical gradients. How can I modify them to horizontal ones?
background-image: -webkit-linear-gradient(top, #0C93C0, #FFF);
background-image: -moz-linear-gradient(top, #0C93C0, #FFF);
background-image: -ms-linear-gradient(top, #0C93C0, #FFF);
background-image: -o-linear-gradient(top, #0C93C0, #FFF);
background-image: linear-gradient(top, #0C93C0, #FFF);
All experimental CSS properties are getting a prefix:
-webkit-for Webkit browsers (chrome, Safari)-moz-for FireFox-o-for Opera-ms-for Internet ExplorerUse
top rightinstead ofright, if you want a different angle. Useleftorrightif you want a horizontal gradient.See also:
linear-gradientInternet Explorer
For <IE10, you will have to use:
filterworks for IE6, IE7 (and IE8), while IE8 recommends the-ms-filter(the value has to be quoted) instead offilter.A more detailled documentation for
Microsoft.Gradientcan be found at: http://msdn.microsoft.com/en-us/library/ms532997(v=vs.85).aspx-ms-filtersyntaxSince you’re a fan of IE, I will explain the
-ms-filtersyntax:Instead of using a RGB HEX color, you can also use a ARGB color format. A means alpha, FF means opaque, while
00means transparent. TheGradientTypepart is optional, the whole expression is case-insensitive.