I'm seemingly having 2 issues styling a nav bar in my footer menu and wondered if I could get some thoughts.
The nav bar looks like the following...

<div id="footer"> <ul> <li><a href="index.html">home</a></li> <li><a href="#">about</a></li> <li><a href="#">news</a></li> <li><a href="#">services</a></li> <li><a href="#">portfolio</a></li> <li><a href="#">contact</a></li> </ul> <p> copyright © <a href="#">Matt O'Connor</a> 2007 - www.mattoconnor.co.uk </p> </div><!-- End Footer Section -->
div#footer ul li {
color: #565656;
padding-right: 4px;
padding-left: 4px;
float: left;
border-right: 1px solid;
}
div#footer ul li:last-child a {
border-right: none;
background: red;
}
div#footer ul li a{
color: #565656;
}
div#footer p {
clear: left;
padding: 2px 0 2px 4px;
}1. Why would the 'last-child' selector not work for the border on the right? It seems to be targeting correctly based on the red background displaying. I have tried putting this on the <a> as well to no avail.
2. I have a...
a:hover {
text-decoration: none;
color: #72a44c;
}specified at the top of my document, the colour of which I wanted to keep for the hover on this menu. However it seems having specified the colour against the a, the hover is no longer inherited. I assume I can add another bit of CSS for the hover specifically in this nav menu but I was curious to know why it doesn't inherit.
Many thanks,
This post has been edited by Konnor: 26 January 2012 - 07:41 PM
Help


















