467,077 Members | 943 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

How do I turn this script into proper CSS

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
  • viewed: 1725
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by news@celticbear.com | last post: by
43 posts views Thread by dan baker | last post: by
17 posts views Thread by peter | last post: by
46 posts views Thread by Neal Becker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.