Using ForeColor in CSS for asp:treeview

D

damiensawyer

I have an ASP:Treeview control

<asp:TreeView Id="TreeView2"
PathSeparator = "|"
OnTreeNodePopulate="PopulateNode"
ExpandDepth="1"
runat="server"
cssclass="TreeControl"
ExpandImageUrl="~/images/bullets/right.gif"
CollapseImageUrl="~/images/bullets/down.gif"
NoExpandImageUrl="~/images/bullets/right2.gif"
NodeStyle-HorizontalPadding="5"
NodeIndent="10"
PopulateNodesFromClient ="true"
I am trying to set the text color in my css style sheet - however it is
not working. The font-size attribute works, but not the color.

..TreeControl
{
color:Red;
Font-Size:0.9em;
}

If I set the forecolor property inside the <asp:TreeView > tag, then
the color works fine... however, I need to use the style sheet.

Can someone please let me know what I'm doing wrong?

Thanks very much in advance,



Damien Sawyer
 

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,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top