CSS and DataGrid

S

Sink

I am working with a CSS sheet for cross-browser
compatibiltiy and am having a problem with the following.
I have an Element TD with a color of Blue for my text
along with other stuff, but when I display a DataGrid,
my Datagrid styles are lost and everything is blue.
Is there a way to maintain my Datagrid formatting without
having to resort to setting my TD's manually?
 
M

MSFT

Hi Gary,

Instead of setting CSS style for all <TD> tags on a form, you may define
different CSS class like:

.MyTD
{
color: red;
}
.DataGridTD
{
color: blue;
}

And then, implement these classes to different controls on your web form.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Sink

Hi,
Thanks for the response. I tried this but it I can't seem
to get NN to accept the class. AM I doinf something wrong?
I used the class property of the <TD> and set to the
ElementID and IE is happy, but NN ignores.
Regards
G.,
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top