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

a:hover help please

0 views
Skip to first unread message

James Flannery

unread,
Oct 13, 2000, 3:00:00 AM10/13/00
to

Dear all,

I have begun to use style sheets in my pages and don't quite understand the
usage of a:hover, a:visited etc...

I have a menu with a dark background. I want the menu items to turn white
when they are hovered over. This is fine. However, on the same page I have
an area with a white background. Now if the user holds the mouse pointer
over my links on the white background they disappear (turn white).

I would like to set a different 'a:hover} color:#####' setting for the white
areas of the page. I have a style sheet for the menu and style sheet for
the content area. Can I set things like 'a:hover} color:#####' in these
style sheets or must these things have a style of their own and must they be
universal to any page that uses them? I can't use frames for various
reasons.

Can anybody help or give me a bit of an explanation of these things. Thank
you very much in advance.

AndyFlan

Rowland Shaw

unread,
Oct 13, 2000, 3:00:00 AM10/13/00
to

<html>
<head>
<title>Use the force!</title>
<style>
.navbar { background-color: black; color: yellow; }
a:hover { color: red; }
a.navbar:hover { color: white; }
</style>
</head>
<body>
<div class="navbar"><a href='http://www.anotherpointless.org/cv.web.html'
class='navbar'>Shameless Advert</a></div>
<p><a href='http://www.anotherpointless.org/'>Another ad</a></p>
</body>
</html>


"James Flannery" <ja...@swedge.prestel.co.uk> wrote in message
news:uLgIdoQ...@cppssbbsa02.microsoft.com...

James Flannery

unread,
Oct 16, 2000, 3:00:00 AM10/16/00
to

Thank you, you hit the nail on the head.

AndyFlan

"Rowland Shaw" <rowlan...@seagatesoftware.com> wrote in message
news:u4$Iz7RNAHA.174@cppssbbsa04...

0 new messages