i have already taregted the last item so that it does not have a right broder, this works but im not sure if the method used is the correct way to do it?
also i would like to target the second list item “Red” so that the link colour is red, how would i do this in the correct manner?
Nothing wrong with using class=“last” like that – in theory you could use CSS3 selectors to target it, but that doesn’t work in IE8/lower so we’re still a ways off on that being real-world deployable.
I’d be more concerned with the DIV around the UL for nothing. PERFECTLY good block-level container all on it’s own; you aren’t applying anything to the DIV you couldn’t just declare on the UL.
i don’t like to use ID selector. i will add a class like .red to the second li’s childnode a.
And there is no need to define #navigation { color: #F00; }
If you don’t want to use class=“last” then the trick I use is to set overflow:hidden on the ul , apply a left border instead and then just shift the list 1px to the left and the odd border is hidden.
You have an id of register in the html but in your above code you have used a dot(.) instead of a hash(#).