Skip to content

Instantly share code, notes, and snippets.

@benjohnson
Created February 21, 2013 19:01
Show Gist options
  • Save benjohnson/5007165 to your computer and use it in GitHub Desktop.
Save benjohnson/5007165 to your computer and use it in GitHub Desktop.
Untitled
body { font-size: 35px; }
.tabs { background: orange; margin: 0; padding:0 }
.tabs li {
float: left;
background: blue;
margin-right: 20px;
list-style-type: none;
position: relative;
margin-top: -5px;
bottom: -5px;
}
.item { border-top: 1px solid #000; }
.tabs:before,
.tabs:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.tabs:after {clear: both;}
<div class="box">
<ul class="tabs">
<li>One</li>
<li>Two</li>
</ul>
<div class="item">Item</div>
<div class="item">Item</div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment