Home All Groups Group Topic Archive Search About

stylesheet on ASP.NET 2.0 TreeView and Menu Control

Author
27 Mar 2006 9:36 PM
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

Author
28 Mar 2006 7:10 AM
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
Author
28 Mar 2006 4:34 PM
clintonG
Since when is there a nonDefault class that all parsers understand  and
where is it documented?

<%= Clinton Gallagher

Show quoteHide quote
"Ward Bekker" <w***@NospaaMequanimity.nl> wrote in message
news:e0anlo$7i7$1@news.cistron.nl...
> 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
Author
29 Mar 2006 8:07 AM
Ward Bekker
Clinton,

It's for you to create.

--
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
Author
19 Apr 2006 12:10 PM
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

Show quoteHide quote
"Ward Bekker" wrote:

> 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
>