Set up a hyperlink to change colors on hover?

C

Carole

In FP 2003, I am using a style sheet with the following in it:
a.menu {font-family: arial; font-size: 12pt;}
a.menu:hover {color: ffffff; text-decoration: underline;}
a.menu:link {color: ffdd55;}
a.menu:active {color: ffdd55;}
a.menu:visited {color: ffdd55;}

This works except for the color change on hover. I can change the
text-decoration to none, and that works, so I know my "menu" class is working
for the most part. I have tried taking this out and defining roll-over
characteristics for the page, but that still does not work. The text stays
yellow (ffdd55).
 
J

Jens Peter Karlsen [FP-MVP]

The correct order is:
Link. active, visited, hover.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
C

Carole

Thank you! That was the problem!

Carole

Jens Peter Karlsen said:
The correct order is:
Link. active, visited, hover.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
M

Murray

The position of active in the list is almost irrelevant. The real correct
order is just link-hover. Where you put visited is dependent on whether you
want visited links to hover or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top