Forum Moderators: not2easy

Message Too Old, No Replies

Nested "classes"?

         

svoltmer

4:10 am on May 24, 2003 (gmt 0)

10+ Year Member



I am trying to get all my text links to have the same attributes of one class, but at the same time I want one of the links to have different a:active and a:hover colors. When I try to have nested a <a class="bla..> within a <div class="bla..> Netscape only applies the outer class. What can I do?

Here is my page:
<snip>check your sticky mail</snip>

It is the links to the left with the home link being the nested one.

[edited by: Nick_W at 7:02 am (utc) on May 24, 2003]
[edit reason] no urls please [/edit]

Nick_W

8:21 am on May 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [webmasterworld.com]

Which version of Netscape are we talking about here?

Nick

svoltmer

6:48 pm on May 24, 2003 (gmt 0)

10+ Year Member



7.02

Longhaired Genius

8:16 pm on May 24, 2003 (gmt 0)

10+ Year Member



This works for me in Mozilla:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>links</title>
<style type="text/css">
body {
color: #000000;
background: #ffffff;
}
.one a {
color: #00ff00;
background: transparent;
}
.two a {
color: #ff0000;
background: transparent;
}
</style>
</head>
<body>
<div class="one">
<a href="">link01</a> <span class="two"><a href="">link02</a></span>
</div>
</body>
</html>