Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Having 2 different hover colors on the same page...

0 views
Skip to first unread message

Stuart Lock

unread,
Apr 25, 2002, 11:34:45 AM4/25/02
to
Hi,
 
I am currently doing a web site that has a hyperlink menu that sits on a very dark background. This means that the links need to be white. When I set the link color in the style sheet using:
 
a:link    {text-decoration: none; color: #ffffff}
a:active  {text-decoration: none; color: #ff0000}
a:visited {text-decoration: none; color: #eeeeee}
a:hover   {text-decoration: none; color: #ffcc00}
 
all the links on the site change to that color scheme. I have tried to include these setting in a class:
 
.mainmenu
    {
    a:link    {text-decoration: none; color: #ffffff}
    a:active  {text-decoration: none; color: #ff0000}
    a:visited {text-decoration: none; color: #eeeeee}
    a:hover   {text-decoration: none; color: #ffcc00}
    }
 
and putting the menu on a div (and span) of it's own:
 
<div class="mainmenu">** menu links here ** </div>
 
but still the style carries throughout the entire site.
 
Does anybody know how to use 2 different link style on the same page?
 
Thanks in advance,
 
Stu
 
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002

Stuart Lock

unread,
Apr 25, 2002, 11:47:38 AM4/25/02
to
I Should have read further first.....

"Sam Low" <saml...@hotmail.com> wrote in message
news:#J51Hr84BHA.1988@tkmsftngp02...
Is there a way to define an A style in a class so that I can have more than
one <A> behaviors on the same page?

Have look at http://allmyfaqs.com/faq.pl?Links_with_different_colors

That should give you the info you need.

BTW - small point, and purely for your information - but, since not everyone
can read HTML text in newsgroups, the convention is that one posts in plain
text.
--
PeterMcC

** - **
"Stuart Lock" <stu...@ntpcl.co.uk> wrote in message
news:#P#j56G7BHA.1988@tkmsftngp05...

0 new messages