How do I get to the directX stuff

J

John Grant

How do I get the following tags into an asp:TableCell

style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#0A6
CCE', endColorStr='#FFFFFF', gradientType='1')"

So they look like this?

<td width="100%"
style="filter:progid:DXImageTransform.Microsoft.Gradient(strtColorStr='#0A6C
CE', endColorStr='#FFFFFF', gradientType='1')"> Hello World <\td>
 
E

Edd

John,

You could put the required style in a separate .css file containing the
following:

..Gradient
{
filter:
progid:DXImageTransform.Microsoft.Gradient(startColorStr='#0A6CCE',
endColorStr='#FFFFFF', gradientType='1')
}

Then set the CssClass property of the asp:TableCell control to "Gradient".


Alternatively, in your code behind, add the following:

myTableCell.Attributes.Add("style", " filter:
progid:DXImageTransform.Microsoft.Gradient(startColorStr='#0A6CCE',
endColorStr='#FFFFFF', gradientType='1')");

(I haven't tested the above line, but you should get the idea)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top