Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
I have used Gradient effect in a page.
But its not working in Google Chrome and Mozilla Firefox.
Kindly suggest.


#grad1{filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#003366', startColorstr='#55aaee', gradientType='2');}
Posted

1 solution

CSS
#gradftb {color: #55aaee;height: 23px;padding: 0px;
/* For WebKit (Safari, Google Chrome etc) */
background: -webkit-gradient(linear, left top, left bottom, from(#55aaee), to(#003366));
/* For Mozilla/Gecko (Firefox etc) */
background: -moz-linear-gradient(top, #55aaee, #003366);
/* For Internet Explorer 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#55aaee, endColorstr=#003366);
/* For Internet Explorer 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF0000FF, endColorstr=#FFFFFFFF)";}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900