Posted by marksisson on 01/10/06 08:00
Can someone shed some light on why the below displays in green in my
browser? Doesn't the anchor's class override its parent div tag's
class???
TEST.HTM
===================
<html>
<head>
<link rel='stylesheet' href='TestStyles.css' type='text/css'>
</head>
<body>
<div class='navmain'>
<a class="navselected" href="abc.htm">Why not blue?</a>
</div>
</body>
</html>
TESTSTYLES.CSS
===================
..navmain A { color: green; }
..navselected { color: blue; }
Navigation:
[Reply to this message]
|