Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Tab system</title>
</head>
<body>
   <div class="tabs">
      <ul class="tabs-header">
         <li class="active">
            <a href="#tab-1">Tab 1</a>
         </li>
         <li>
            <a href="#tab-2">Tab 2</a>
         </li>
         <li>
            <a href="#tab-3">Tab 3</a>
         </li>
      </ul>
      <article class="tab active" id="tab-1">
         Content 1
      </article>
      <article class="tab" id="tab-2">
         Content 2
      </article>
      <article class="tab" id="tab-3">
         Content 3
      </article>
   </div>
</body>
</html>
 
a
{
   color: #000000;
}
.tabs-header
{
   padding: 0;
}
.tabs-header > li {
   display: inline-block;
   list-style-type: none;
   margin-right: 0.5em;
}
.tabs-header > li.active a {
   color: #BB0000;
   font-weight: bold;
}
.tab {
   border: 1px solid #CCC;
   display: none;
   padding: 1em;
}
.tab.active {
   display: block;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
AurelioDeRosapro
0viewers