Forum Moderators: not2easy
Your (navigation?) links style should be specified under a container with a specific class, so that only links in that container are affected. Example:
div.navigation a{border-left:2px solid red}
this means that only a elements inside the navigation div will be styled.
Another option, which is generally desired for most images anyway (assuming your header image is an image element) is to do:
a img{border:none;}
HTML <a class="link" class="hover" class="active" href="index.html"><img border="0"
src="images/networkartslogo.gif" width="749" height="102" alt="Network Arts header/logo image"><title>Network Arts</title></a>
and the css which is hard to do as I have two navigation lists, the first one is plain ie without a div.
a {
text-decoration:none;
padding: 8px;
color:#fff;
background: #6600CC;
border: 1px solid; }
.link { background-color: #E60073;
border: 0;
}
.hover { border: 0;
}
.active { border: 0;
}
a:hover {
color:#fff;
background-color:#E60073;
border: 1px solid; }
a:active {
color:#fff;
background-color:#E60073;
border: 1px solid; }
I have set selectors but I am not sure if they will work in the HTML as they are next to each other. Also the top navigation jumps when I hover on the header, which is not quite right.
Notice that a:hover is different than a.hover. a.hover is specifying the style for a link IN ALL IT'S STATUSES, as long as it has the .hover class assigned to it. a:hover assigns a style to the link only when it's hovered over.
Secondly, to assign multiple classes, use class="class1 class2 class3" That's it. Just separate the classes with spaces, otherwise it's possible that it will just use the last class (and it takes up more space regardless).