Gridview not picking the correct formatting

J

John

Hi

I have a grid view to which I have applied the format colorful. This format
has white header text and the grid view code does have the following line;

<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White"
BorderStyle="None" />

Unfortunately the grid view header text is coming out as gray as per the css
applied to the page as below;

body,td,th {
color: #3E4349;
font-family:"trebuchet ms", trebuchet, tahoma, Verdana, Arial, sans-serif;
font-size:12px;
vertical-align:top;
}

How can I make the grid view header text white overriding the css?

Thanks

Regards
 
M

Munna

Hi

I have a grid view to which I have applied the format colorful. This format
has white header text and the grid view code does have the following line;

<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White"
BorderStyle="None" />

Unfortunately the grid view header text is coming out as gray as per the css
applied to the page as below;

body,td,th {
color: #3E4349;
font-family:"trebuchet ms", trebuchet, tahoma, Verdana, Arial, sans-serif;
font-size:12px;
vertical-align:top;

}

How can I make the grid view header text white overriding the css?

Thanks

Regards
Hi

use a css and mark the css style as !important;

..headerStyle
{
color:green !important;
}


Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top