The method above works if you have div's or span's with the specified class or id. For example, the following would work
CODE
#banner { background: black; color: white; }
#banner a:link { color: red; }
only if your html looks something like this:
CODE
<div id="banner">
<a href="something.html">click me</a>
</div>
If that method doesn't fit the logic of your layout, another alternative is this:
CODE
a:link { color: blue; }
a:link.banner {color: red; }
with the html looking like
CODE
<a href="something.html" class="banner">click me</a>
Repeat as necessary for visited, hover, active, etc.
Hope this helps!