I am working on tabs for my website which is mocked up here:
Mockup
The behavior I'm looking for is for the main content to have a continuous 1px black solid border, with the tabs all resting on top.
When a tab is either :hovered or belonging to the active page, I want to style to change to white background, black text, and a white bottom border. So far so good with that.
My issue is with the implementation and which will be easier to tune and more browser-compatible. Right now I have some sloppy things taking place, such as the "top" border being drawn by the UL (seemed to allow me to get it to "disappear") and stretching the sides up ~30px by having a <br> at the top of the main content area. Is there a more sensible way to achieve this effect?
I tried raising the Z-factor of the a:hover pseudo class so that it's white bottom border would be topmost and over-draw the black border when it was a continuously drawn border around the main content (and not a border-bottom of the UL) and that didn't result in my desired effect...
My other issue which I would like to fix is that currently the dark yellow borders on each <li> intrude into the content border. Is there a way to get those drawn with a different priority? I did some searching on this and wasn't able to come up with much. Thanks for an answer, you all are so helpful!
Alex
