
March 25th, 2004, 09:04 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Script for gradient backgrounds and tables
Remember, this script will not work in earlier versions of IE and and some versions Netscape.
<html>
<head>
<title>Gradient colors</title>
</head>
<body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#003EC9', startColorstr='#FFFFFF', gradientType='0');"></body>
Now transport this to an HTML table (note how we reversed the color order for the table): Remember, the gradient runs from one color to the other, so you want to have highly contrasting colors for your two input values to take advantage of the full effect. Also note the gradientType, which is specified in our example as "0". This produces a vertical blend. If we set this value to "1" we get a horizontal gradation.
<table border="1" cellpadding="0" cellspacing="0" width="90%" style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#ffffff', startColorstr='#ccffcc', gradientType='0');"><tr><td>adfad<br><br></td></tr></table>
</body>
</html>
Last edited by ziotech : March 25th, 2004 at 09:07 PM.
|