Last post Dec 07, 2009 01:18 PM by virender
Member
2 Points
21 Posts
Dec 07, 2009 11:53 AM|Chalam|LINK
Hi All,
I have just written a menu but unable to set the link color to white.
I am not able to find out, What should be the CSS Class to get the link color set to the below link
"AspNet-Menu-toplevel1 AspNet-Menu-Selected"
<div class="mainMenu" id="ctl00_mainMenu"> <div class="AspNet-Menu-Horizontal"> <ul class="AspNet-Menu"> <li class="AspNet-Menu-toplevel1 AspNet-Menu-Selected"> <a href="/CR System/Pages/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected"> SEARCH REQUEST</a> </li> <li class="AspNet-Menu-toplevel2"> <a href="/CR System/Pages/NewRequest.aspx" class="AspNet-Menu-Link"> NEW REQUEST</a> </li> </ul> </div> </div>
Participant
870 Points
228 Posts
Dec 07, 2009 12:49 PM|aggonzalez|LINK
Hi Chalam
You can use something like this.
<a href="/CR System/Pages/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected" style="color:#fff">SEARCH REQUEST</a>
Or paste here the styles you have to see which has the white color.
Greetings.
Dec 07, 2009 12:55 PM|Chalam|LINK
To Rephrase,
with the above piece of html
if I give the below class, it does not render white for the menu text
.mainMenu .AspNet-Menu-Link AspNet-Menu-Selected { color: White; }
280 Points
146 Posts
Dec 07, 2009 12:57 PM|Nishant BEIT|LINK
a
{
// give your style color font etc.
color:white;
which will change all hyperlink style
}
641 Points
166 Posts
Dec 07, 2009 01:18 PM|virender|LINK
Use this for white all hyperlink in document
a{color:white;}
this for line
<div id="ctl00_mainMenu"> <div> <ul> <li > <a href="/CR System/Pages/Default.aspx" style="color:white;"> SEARCH REQUEST</a> </li> <li> <a href="/CR System/Pages/NewRequest.aspx"> NEW REQUEST</a> </li> </ul> </div> </div>
Use this for Internal
<style> .alink { color:red; } </style>
<div class="mainMenu" id="ctl00_mainMenu">
<div class="AspNet-Menu-Horizontal">
<ul class="AspNet-Menu">
<li class="AspNet-Menu-toplevel1 AspNet-Menu-Selected" >
<a href="/CR System/Pages/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected alink" >
SEARCH REQUEST</a>
</li>
<li class="AspNet-Menu-toplevel2">
<a href="/CR System/Pages/NewRequest.aspx" class="AspNet-Menu-Link">
NEW REQUEST</a>
</ul>
</div>
Use this for innerhtml control specific
<style>
.AspNet-Menu-Horizontal ul li a
color:red;
</style>
Member
2 Points
21 Posts
how to set the hyperlink color to white
Dec 07, 2009 11:53 AM|Chalam|LINK
Hi All,
I have just written a menu but unable to set the link color to white.
I am not able to find out, What should be the CSS Class to get the link color set to the below link
"AspNet-Menu-toplevel1 AspNet-Menu-Selected"
Participant
870 Points
228 Posts
Re: how to set the hyperlink color to white
Dec 07, 2009 12:49 PM|aggonzalez|LINK
Hi Chalam
You can use something like this.
Or paste here the styles you have to see which has the white color.
Greetings.
Regards.
--
Alan González
Member
2 Points
21 Posts
Re: how to set the hyperlink color to white
Dec 07, 2009 12:55 PM|Chalam|LINK
To Rephrase,
with the above piece of html
if I give the below class, it does not render white for the menu text
Member
280 Points
146 Posts
Re: how to set the hyperlink color to white
Dec 07, 2009 12:57 PM|Nishant BEIT|LINK
a
{
// give your style color font etc.
color:white;
which will change all hyperlink style
}
Nishant
Flatter me, and I may not believe you. Criticize me, and I may not like you. Ignore me, and I may not forgive you. Encourage me, and I may not forget you.
Member
641 Points
166 Posts
Re: how to set the hyperlink color to white
Dec 07, 2009 01:18 PM|virender|LINK
Use this for white all hyperlink in document
a{color:white;}
this for line
<div id="ctl00_mainMenu">
<div>
<ul>
<li >
<a href="/CR System/Pages/Default.aspx" style="color:white;">
SEARCH REQUEST</a>
</li>
<li>
<a href="/CR System/Pages/NewRequest.aspx">
NEW REQUEST</a>
</li>
</ul>
</div>
</div>
Use this for Internal
<style>
.alink
{
color:red;
}
</style>
<div class="mainMenu" id="ctl00_mainMenu">
<div class="AspNet-Menu-Horizontal">
<ul class="AspNet-Menu">
<li class="AspNet-Menu-toplevel1 AspNet-Menu-Selected" >
<a href="/CR System/Pages/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected alink" >
SEARCH REQUEST</a>
</li>
<li class="AspNet-Menu-toplevel2">
<a href="/CR System/Pages/NewRequest.aspx" class="AspNet-Menu-Link">
NEW REQUEST</a>
</li>
</ul>
</div>
</div>
Use this for innerhtml control specific
<style>
.AspNet-Menu-Horizontal ul li a
{
color:red;
}
</style>
<div class="mainMenu" id="ctl00_mainMenu">
<div class="AspNet-Menu-Horizontal">
<ul class="AspNet-Menu">
<li class="AspNet-Menu-toplevel1 AspNet-Menu-Selected" >
<a href="/CR System/Pages/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected alink" >
SEARCH REQUEST</a>
</li>
<li class="AspNet-Menu-toplevel2">
<a href="/CR System/Pages/NewRequest.aspx" class="AspNet-Menu-Link">
NEW REQUEST</a>
</li>
</ul>
</div>
</div>
www.nosqlninja.com nosql database resource