How do I turn this script into proper CSS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Colin Steadman

    How do I turn this script into proper CSS

    I've work out how to use the filter gradient using this link:

    Gain technical skills through documentation and training, earn certifications and connect with the community


    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>Anticipatio n Of A New Lovers Arrival</td>
    </tr>
    </table>


    <script>
    document.all('c ssTest').style. filter =
    "progid:DXImage Transform.Micro soft.Gradient(G radientType=0,
    StartColorStr=' #D3DFFF', EndColorStr='#F FF7E3')";
    </script>

    </body>
    </html>
Working...