/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.gradient { color: #ffc; /* default for browsers that don't support gradients */ background: #aa3e00; /* For Opera */ background-image: -o-linear-gradient(rgb(170,101,0),rgb(170,62,0)); /* For WebKit (Safari, Google Chrome etc) */ background: -webkit-gradient(linear, left top, left bottom, from(#aa3e00), to(#aa6500)); /* For Mozilla/Gecko (Firefox etc) */ background: -moz-linear-gradient(top, #aa6500, #aa3e00); /* For Internet Explorer 5.5 - 7 */ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aa6500, endColorstr=#aa3e00); /* For Internet Explorer 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#aa6500, endColorstr=#aa3e00)"; }