TD style gradient filter

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I am trying to get a gradient filter on a table item.

I am using...

<td style="width: 309px; filter:
DXImageTransform.Microsoft.Gradient(EndColorStr=#c0cfe2,
StartColorStr=#ffffff, GradientType=0);">
hello</td>

I have tried changing the case, taking out single quotes and various other
things but it just doesn't work! All the examples I have seen say to use
"progid:DXImageTransform" but if I do this then the editor says the colon is
unexpected.

Any help much appreciated...

Best regards
Mark Baldwin
 
I have tried changing the case, taking out single quotes and various other
things but it just doesn't work! All the examples I have seen say to use
"progid:DXImageTransform" but if I do this then the editor says the colon is
unexpected.

Any help much appreciated...

FWIW, I find it infinitely easier, and, obviously, more cross-browser
compatible to simply use a gradient image and assign it via CSS to the
background of your TD.

-Darrel
 
Mark,

That's correct, you have to prefix it with progid:. Just ignore the warning.

Eliyahu
 
Back
Top