Opps, sorry, I forgot to add the css file ...
Code:
<style>
/* This is just a dummy box, DELETE for production. */
.main
{
border: 1px solid red;
padding: 5px;
}
/* This is the entire tabs for the area with content. */
.tabs
{
xwidth: 650px;
xfloat: none;
list-style: none;
position: relative;
padding: 0;
xmargin: 75px auto;
width: 100%;
xoverflow: auto;
border: 1px solid yellow;
xheight: 350px;
display: inline-block;
}
/* This is the individual tabs. */
.tabs li
{
float: left;
}
/* Radio buttons area that is NOT visible. */
.tabs input[type=radio]
{
position: absolute;
top: -9999px;
left: -9999px;
}
/* This is the current tab selected. */
[id^=tab]:checked + label
{
background: #08C;
color: white;
top: 0;
}
/* This is the individual tab label areas. */
.tabs label
{
display: block;
padding: 10px 20px;
border-radius: 2px 2px 0 0;
color: #08C;
font-size: 24px;
font-weight: normal;
font-family: 'Roboto', helveti;
background: rgba(255,255,255,0.2);
cursor: pointer;
position: relative;
top: 3px;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
/* This is the individual tab hover. */
.tabs label:hover
{
background: rgba(255,255,255,0.5);
top: 0;
}
/* This is the checked tab content area. */
[id^=tab]:checked ~ [id^=tab-content]
{
display: block;
}
/* Same as above. */
.tab-content
{
z-index: 2;
display: none;
text-align: left;
width: 100%;
font-size: 20px;
line-height: 140%;
padding-top: 10px;
background: #08C;
padding: 15px;
color: white;
xposition: absolute;
top: 53px;
left: 0;
box-sizing: border-box;
-webkit-animation-duration: 0.5s;
-o-animation-duration: 0.5s;
-moz-animation-duration: 0.5s;
animation-duration: 0.5s;
z-index: 2;
display: none;
float: left;
padding: 1em;
left: 0;
border: 1px solid #ddd;
margin-top: 8px;
min-width: 90%;
}
#nuffin label
{
background: pink;
}
</style>
Bookmarks