I have a tabbed navigation on my page. It works, but I can’t get the bottom border on the selected/active tab to go away. I want a border to separate the nav section from the content section, but I don’t want a bottom border on the selected/active tab.
Any tips or suggestions would be greatly appreciated!
I may have misunderstood what you just said so excuse me if this sounds silly but the only way to remove the border on #TopNavArea is to remove the border from that element.
You can’t change the border on that element via another different element which seems to be what you just said. The selected tab has nothing to do with #topNavArea.
To remove the border form #topNavArea you could add a class and over-ride it on that element.
<div id="topNavArea" class="noborder">
.noborder{border-bottom:none!important}
However, I think I misunderstood what you were telling me - I must be having an off day
Oh ok, but I’ve seen other sites that use a bottom border to separate the navigation section from the content section, yet they somehow get rid of the bottom border on the active tab.
What you would need to do is rub the line out using the bottom border of the active tab.
Usually you would have the tabs sitting on the border so that the border bottom of the tab and the border-top of the div are in the same place. You can do this by shifting all the tabs down 1px with relative positioning.
On hover you just change the background colour of the active tab and the border-bottom color to match the background of the div below and thus rub out the border. The tabs on top should have a higher z-index than the element below so that it stays on top.
Or you can add 1px padding-bottom on hover and remove the bottom border at the same time as in this example.
You haven’t provided enough code for me to apply it to your code properly.