it doesn't work...
here is my code:
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#first a {
/* styles for all links inside element with id="first" */
color: red;
}
#first a:hover {
/* Hover styles for links inside that element
color: orange;
}
#second a {
/* Styles for links inside element with id="second"
color: green;
}
#second a:hover {
/* Hover styles for links inside element with id="second"
color: blue;
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="first">
<a href="blah">A link</a>
<a href="blah">Another link</a>
<a href="blah">And another link</a>
</div>
<div id="second">
<a href="blah">A link</a>
<a href="blah">Another link</a>
<a href="blah">And another link</a>
</div>
</body>
</html>
i only see that the first links group is red, and doesn't change on the hover,
and the second group of links is blue and also doesn't change on hover...
what's wrong?
btw, what's the difference between class and id's?
untill now i've only known about and used class
Bookmarks