Reply to Re: Anchor colors

Your name:

Reply:


Posted by tshad on 08/07/07 23:24

Unfortunately, I don't have a public site to use - just an intranet.

In the following, can I put the selectors together (the following works - I
just want to see if I can combine them)?

..nav-menu-side li a
{
height: 2em;
line-height: 2em;
color: #666666; /* Color of the Link - need to change it for a:visited as
well */
text-align: center;
margin: 0;
padding: 0;
text-decoration:none;
font-size:9px;
}
..nav-menu-side li a:link
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}
..nav-menu-side li a:visited
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}
..nav-menu-side li a:hover
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}
..nav-menu-side li a:active
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}

I tried

..nav-menu-side li a:link a:visited a:hover a:active
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}

And

..nav-menu-side li a:link a:visited a:hover a:active
{
color: #666666; /* Color of visited link - should be the same as the "a"
tag */
}

neither of these worked.

I am using them for my menu links that I want to be the same color and not
change when visted as these are just for navigation and they will be using
them constantly on all my pages.

<div class="nav-menu" >
<ul>
<li><asp:HyperLink ID="HomeMenu" Text="Home"
NavigateUrl="/jobSeeker/displayCompanyJobs.aspx" runat="server"/></li>
<li><asp:HyperLink ID="ViewBasicMenu"
NavigateUrl="/jobSeeker/viewPositionsNS.aspx?type=Basic" Text="Search"
runat="server"/></li>
<li><asp:HyperLink ID="NewAccountMenu"
NavigateUrl="/jobSeeker/create_new_account.aspx" Text="Create Account"
runat="server"/></li>
<li><asp:HyperLink ID="LoginMenu" NavigateUrl="/jobSeeker/EELogin.aspx"
Text="Login" runat="server"/></li>
</ul>
</div>

Thanks,

Tom

"Chris F.A. Johnson" <cfajohnson@gmail.com> wrote in message
news:r9fao4-qoe.ln1@xword.teksavvy.com...
> On 2007-08-02, tshad wrote:
>> I am not sure I understand your explanation on the differences between:
>>
>> .bodybold a:link
>>
>> and
>>
>> a.bodybold:link
>
> The first one is an anchor inside an element with class="bodybold";
> the second is an anchor with class="bodybold".
>
>> and the reason the first one works for my links in my lists but not for
>> the
>> links by themselves.
>
> URL?
>
> --
> Chris F.A. Johnson <http://cfaj.freeshell.org>
> ===================================================================
> Author:
> Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация