I have tabs that look like this:
-------
| A | B C
| |
------------------------
But I want them to look like this:
-------
| A | B C
| |
-- ------------
That is, with the bottom border of the tab gone. To create these tabs, I'm drawing a border around the tab, setting the bottom border to none, and then drawing a border around the next div. The HTML is basically like this:
<ul>
<li class="current">Foo</li>
<li>Bar</li>
</ul>
<div class="otherStuff">
Some other stuff here.
</div>
and the CSS is basically like this:
ul { padding: 10px;
margin: 0; }
li {
display: inline;
padding: 10px;
}
li.current {
border: 1px solid #bbb;
border-bottom: none;
}
.otherStuff {
border-top: 1px solid #bbb;
border-bottom: 1px solid #bbb;
margin: 0;
padding: 15px;
}
Is there a better way to draw these tabs?
Here's a jsfiddle of what I've been playing with so far: http://jsfiddle.net/V9PQ7/