Hover Question

  • Thread starter Thread starter Darren
  • Start date Start date
D

Darren

Why does the hover not work here?

<html>
<head>
<title>Test</title>
</head>
<style type="text/css">
a:hover {font-weight: bold}
</style>
<body>
<a>Test me</a>
</body>
</html>
 
Hi,

In order for this to work, you need to add the href
class as below:


<html>
<head>
<title>Test</title>
</head>
<style type="text/css">
a:hover { /* You define what you
would like it to do here*/
color: red;
font-weight: bold
}
</style>
<body>
<a href="">Test Me</a> /* For it to work, you need to
define the href bit. That's what makes it magic */
</body>
</html>


Best regards,

Altrus




: Why does the hover not work here?
:
: <html>
: <head>
: <title>Test</title>
: </head>
: <style type="text/css">
: a:hover {font-weight: bold}
: </style>
: <body>
: <a>Test me</a>
: </body>
: </html>
:
:
 
Back
Top