Created
February 25, 2013 21:34
-
-
Save benjohnson/5033541 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { font-size: 35px; font-family: Helvetica; } | |
.tabs { | |
background: orange; | |
margin: 0; | |
padding:0; | |
position: relative; | |
margin-top: -2px; | |
bottom: -5px; | |
z-index: 1; | |
} | |
.tabs li { | |
float: left; | |
background: blue; | |
margin-right: 20px; | |
list-style-type: none; | |
} | |
.tabs li.active { | |
position: relative; | |
margin-top: -5px; | |
bottom: -5px; | |
background: green; | |
z-index: 1; | |
} | |
.item { border-top: 5px solid red; } | |
.tabs:before, | |
.tabs:after { | |
content: " "; /* 1 */ | |
display: table; /* 2 */ | |
} | |
.tabs:after {clear: both;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<ul class="tabs"> | |
<li>One</li> | |
<li class="active">Two</li> | |
</ul> | |
<div class="item">Item</div> | |
<div class="item">Item</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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