stylesheet on ASP.NET 2.0 TreeView and Menu Control

V

Vivek N

Hi,

I'm using the ASP.NET 2.0 TreeView and Menu Control in my website. The
problem is that when the client side script is generated the control
generates a normal html link <a> </a> . In my style sheet I have
following. This makes even those (esp the menu items) also blue in
color. Is there any way out ?? Or can I explicitly tell control not to
use this style for links. Thanks a lot in advance.

A:active
{
color: Blue;
text-decoration:none;
}
A:hover
{
color: Blue;
text-decoration:none;
}
A:visited
{
color: Blue;
text-decoration:none;
}

Vivek N
 
W

Ward Bekker

Hi Vivek,

You can by using CSS. For example:

..nonDefault A:Active {
color: Green;
}

For this to work you need to set the cssclass property of you controls
to nonDefault.

This statement means that for all anchors tags "inside" your controls
have a green hyperlink text color.


--
Ward Bekker
"Asp.Net Discussions for the Professional Developer"
http://www.dotnettaxi.com

"Free .Net 2.0 C# to/from VB.Net Code Converter"
http://www.dotnettaxi.com/Tools/Converter.aspx
 
C

clintonG

Since when is there a nonDefault class that all parsers understand and
where is it documented?

<%= Clinton Gallagher
 
B

Bart

Hi Ward,

I tried this for the non visited url's like in a treeview control:
A:Link {
color: Green;
}

But is doesn't work.
Do you know what the problem could be?

Thanks
 

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,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top