|
Best Front Page and Web Design Forum |
|
Great Web
Graphic program here |
|
The
Gradient Filter |
back - home - Filters scripts
|
1. A simple gradient |
|
2. With Glow
Filter Added
|
Instructions for use of filter
|
The Gradient Filter The filter must be applied to an element that has width or height measurements. For example an image, table, table cell. You cannot, for example apply it directly to the <p>, H1, <b>. Because an exact measurement is required one can use the <div> or <span> define the width or height, or both, then the content will have the filter applied to it. Below are the codes used for this page, and at the end of them an explanation of how to use them. Example 1 above, the filter was applied to the table cell <td>. This is the code used: <td style="FILTER: progid:DXImageTransform.Microsoft.gradient (GradientType=1, startColorstr=#c0ff3300, endColorstr=#ff000000); COLOR: green; HEIGHT: 120px"><p align="center"><font size="5">1. A simple gradient</font></td>. Example 2 has the gradient filter applied to the table cell. Into the table cell is a <div> and the glow filter has been applied to the content of the <div>. Here is the code used: <td style="FILTER: progid:DXImageTransform.Microsoft.gradient
(GradientType=0, startColorstr=#ffff3300, endColorstr=#ff000000);"
width="382" bgcolor="#000000" align="center" height="200"><div
style="FILTER: progid:DXImageTransform.Microsoft.glow(strength=2, The web page itself has the gradient filter applied. To do this, the whole page is set within a <div>, with measurements of 100%. Here is the code to do that: <body bgcolor="#000000" topmargin="0" leftmargin="0"> Your page content goes in here ...... at the end of all the page content, you must close the <div> tag, immediately before the closing <body> tag.... as below </div>
You can apply the Gradient Filter to most things that have a measurement - image, table cell, div etc etc. You then apply the filter using Styles. Here is Example 1 explained. <td style="Filter: progid:DXImageTransform.Microsoft.gradient (GradientType=1, startColorstr=#c0ff3300, endColorstr=#ff000000); COLOR: green; HEIGHT: 120px">Your table cell content goes here .... whatever you like</td>
|
||||||||||||||||||||||||||||||||||||||||
back - home - Filters scripts