Previous Message
Next Message

Weird nav problem

Sent by Luc on 28 June 2004 01:01


Hello Darren,     

It was foretold that on 28-6-2004 @ 00:41:55 GMT+0100 (which was
1:41:55 where I live) Darren Danks would write:

<snipped a bit>

DD> I'm working on a site and I've got a horizontal navigation bar built from
DD> simple text. I'm using CSS to style the nav bar with brown text as standard
DD> with an inverse on a:hover so the background of the text goes brown and the
DD> text goes white. Simple enough but I have a problem with the home link. It's
DD> linking to index.htm but on hover, the background goes brown but the text
DD> doesn't go white, it stays brown.

DD> CSS:-
DD> #nav a:link {color:#996600; text-decoration:none;}
DD> #nav a:hover {color:#ffffff; background-color:#996600;}
DD> #nav a:active {color:#996600; text-decoration:none;}
DD> #nav a:visited {color:#996600; text-decoration:none;}
  
Change your CSS as follows:

#nav a:link {color:#996600; text-decoration:none;}
#nav a:visited {color:#996600; text-decoration:none;}
#nav a:hover {color:#ffffff; background-color:#996600;}
#nav a:active {color:#996600; text-decoration:none;}

The order for links in CSS is lvha or LoVe HA(te)

That should fix things.
 
-- 
Best regards,
 Luc
_________________________

http://www.dzinelabs.com

Powered by The Bat! version 2.11 with Windows 2000 (build 2195),
version 5.0 Service Pack 4 and using the best browser: Opera.

"Exhilaration is that feeling you get just after a great idea hits
you,and just before you realize what's wrong with it." - Rex Harrison
(b. 5 March 1908)

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: