View Full Version : CSS help

01-03-2007, 05:31 PM
I am using a CSS for my webpage, for a rollover menu. When I try to put in a regular link into the body, it still does the CSS. How can I override the CSS?


01-03-2007, 06:04 PM
I saw no other links on that page apart from the nav.
My guess is that your problem is not overriding anything, but simply that you've set style to all your links instead of only to your navigation links.

Put a container with a css class around your nav, and then specify style to only the links inside that nav. Example:
<div id="nav">
<a href="file1.html">Link1</a>
<a href="file2.html">Link2</a>

And the CSS:
#nav a:link {color: blue;}
#nav a:visited{color: blue;}
#nav a:hover {color: black;}
#nav a:active {color: blue;}