Hi,
im currently tweaking a different designers code, ive come across this
body.sector .sidebar nav a:link,
body.sector .sidebar nav a:visited {
font-weight:bold;
font-size:1.15em;
color:rgb(45,48,121);
margin:0 10px;
padding:10px 0;
border-bottom:1px solid rgb(204,204,204);
display:block;
text-decoration:none;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
-ms-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
}
Basically my problem is that i want to remove the border from the last li (as the css is to style a unordered list.)
so i wrote this
body.sector .sidebar nav a:link:last-child,
body.sector .sidebar nav a:visited:last-child
{
border: 0px;
}
but all the li’s are affect by it, not just the last one like its meant to… could someone explain what im doing wrong?