The border needs to be applied to each nav a not to nav alone. Then create a new class called active (or call it whatever) and then style the border color there. [jsfiddle.net...]
Not that you will need to add a negative margin to nav a to compensate for the borders that are not shown. Your border width is 5px, so you need