By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,738 Members | 1,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,738 IT Pros & Developers. It's quick & easy.

How do I turn this script into proper CSS

P: n/a
I've work out how to use the filter gradient using this link:

http://msdn.microsoft.com/workshop/a...s/gradient.asp

But I cant convert it into proper CSS, could anyone show me how its
done. My test page is copied below-

TIA,
Colin
<html>
<head>
<style rel="stylesheet" type="text/css">
</style>
</head>
<body>
<table id=cssTest>
<tr>
<td>Wisdom Like Silence</td>
</tr>
<tr>
<td>Shoot Them Later</td>
</tr>
<tr>
<td>Anticipation Of A New Lovers Arrival</td>
</tr>
</table>
<script>
document.all('cssTest').style.filter =
"progid:DXImageTransform.Microsoft.Gradient(Gradie ntType=0,
StartColorStr='#D3DFFF', EndColorStr='#FFF7E3')";
</script>

</body>
</html>
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.