Jump to content

:hover problems


adam84

Recommended Posts

The problem is that the link doesnt change when I hover over it. The link is green, but nothing happens when I hover over. Any ideas?

 

HTML

<a class="nav" href="http//www.google.ca/">Google</a>

 

CSS

a.nav{
               color: green;
}

a.nav:hover{
font-weight: bold;
cursor: pointer;
}

Link to comment
https://forums.phpfreaks.com/topic/205661-hover-problems/
Share on other sites

Hi,

 

It works fine in Firefox and IE. Are you sure you don't have any conflicting styles elsewhere?

 

<html>
<head>
<style type="text/css">
a.nav
{
color: green;
}

a.nav:hover
{
font-weight: bold;
cursor: pointer;
}
</style>
</head>
<body>
<a class="nav" href="http//www.google.ca/">Google</a>
</body>
</html>

 

Joe

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.