cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="tab">
  
	<ul class="tabs">
		<li><a href="#">Tab01</a></li>
		<li><a href="#">Tab02</a></li>
		<li><a href="#">Tab03</a></li>
	</ul> <!-- / tabs -->

	<div class="tab_content">

		<div class="tabs_item">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <div class="tabs-left">
              <ul class="nav nav-tabs">
                <li class="active"><a href="#a" data-toggle="tab"><span class="glyphicon glyphicon-heart"></span></a></li>
                <li><a href="#b" data-toggle="tab"><span class="glyphicon glyphicon-star"></span></a></li>
                <li><a href="#c" data-toggle="tab"><span class="glyphicon glyphicon-headphones"></span></a></li>
                <li><a href="#d" data-toggle="tab"><span class="glyphicon glyphicon-time"></span></a></li>
                <li><a href="#e" data-toggle="tab"><span class="glyphicon glyphicon-calendar"></span></a></li>
                <li><a href="#f" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span></a></li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active" id="a">
                  <h3>Who do you Love?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Jen &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Dezi &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Eli &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Mojo &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                  </ul>
                </div>
                <div class="tab-pane" id="b">
                  <h3>What's your Favorite?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Crystals &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Healing &nbsp; &nbsp;<span class="badge pull-right">90%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Exploring &nbsp; &nbsp;<span class="badge pull-right">78%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>QiGong &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span>
                      </h4></li>
                  </ul>
                </div>
                <div class="tab-pane" id="c">CCCCThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="d">DDDDDSecondo sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.</div>
                <div class="tab-pane" id="e">EEEEEThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="f">FFFFFFThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
              </div><!-- /tab-content -->
            </div><!-- /tabbable -->
          </div><!-- /col -->
        </div><!-- /row -->
      </div><!-- /container -->
		</div> <!-- / tabs_item -->

		<div class="tabs_item">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <div class="tabs-left">
              <ul class="nav nav-tabs">
                <li class="active"><a href="#a1" data-toggle="tab"><span class="glyphicon glyphicon-heart"></span></a></li>
                <li><a href="#b1" data-toggle="tab"><span class="glyphicon glyphicon-star"></span></a></li>
                <li><a href="#c1" data-toggle="tab"><span class="glyphicon glyphicon-headphones"></span></a></li>
                <li><a href="#d1" data-toggle="tab"><span class="glyphicon glyphicon-time"></span></a></li>
                <li><a href="#e1" data-toggle="tab"><span class="glyphicon glyphicon-calendar"></span></a></li>
                <li><a href="#f1" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span></a></li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active" id="a1">
                  <h3>Who do you Love?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Jen &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Dezi &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Eli &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Mojo &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                  </ul>
                </div>
                <div class="tab-pane" id="b1">
                  <h3>What's your Favorite?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Crystals &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Healing &nbsp; &nbsp;<span class="badge pull-right">90%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Exploring &nbsp; &nbsp;<span class="badge pull-right">78%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>QiGong &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span>
                      </h4></li>
                  </ul>
                </div>
                <div class="tab-pane" id="c1">CCCCThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="d1">DDDDDSecondo sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.</div>
                <div class="tab-pane" id="e1">EEEEEThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="f1">FFFFFFThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
              </div><!-- /tab-content -->
            </div><!-- /tabbable -->
          </div><!-- /col -->
        </div><!-- /row -->
      </div><!-- /container -->
		</div> <!-- / tabs_item -->

		<div class="tabs_item">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <div class="tabs-left">
              <ul class="nav nav-tabs">
                <li class="active"><a href="#a2" data-toggle="tab"><span class="glyphicon glyphicon-heart"></span></a></li>
                <li><a href="#b2" data-toggle="tab"><span class="glyphicon glyphicon-star"></span></a></li>
                <li><a href="#c2" data-toggle="tab"><span class="glyphicon glyphicon-headphones"></span></a></li>
                <li><a href="#d2" data-toggle="tab"><span class="glyphicon glyphicon-time"></span></a></li>
                <li><a href="#e2" data-toggle="tab"><span class="glyphicon glyphicon-calendar"></span></a></li>
                <li><a href="#f2" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span></a></li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active" id="a2">
                  <h3>Who do you Love?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Jen &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Dezi &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Eli &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Mojo &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                  </ul>
                </div>
                <div class="tab-pane" id="b2">
                  <h3>What's your Favorite?</h3>
                  <ul class="list-group pull-left">
                    <li class="list-group-item">
                      <h4>Crystals &nbsp; &nbsp;<span class="badge pull-right">100%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Healing &nbsp; &nbsp;<span class="badge pull-right">90%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Exploring &nbsp; &nbsp;<span class="badge pull-right">78%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>QiGong &nbsp; &nbsp;<span class="badge pull-right">83%</span></h4>
                    </li>
                    <li class="list-group-item">
                      <h4>Myself &nbsp; &nbsp;<span class="badge pull-right">100%</span>
                      </h4></li>
                  </ul>
                </div>
                <div class="tab-pane" id="c2">CCCCThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="d2">DDDDDSecondo sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.</div>
                <div class="tab-pane" id="e2">EEEEEThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
                <div class="tab-pane" id="f2">FFFFFFThirdamuno, ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae.</div>
              </div><!-- /tab-content -->
            </div><!-- /tabbable -->
          </div><!-- /col -->
        </div><!-- /row -->
      </div><!-- /container -->
		</div> <!-- / tabs_item -->
		
	</div> <!-- / tab_content -->
</div> <!-- / tab -->

            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Roboto:300);

// color
$green: #87d3b7;

// TAB ~~~~~~~~~~~~~~~ (.)(.)
.tab {
	padding-top: 50px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
	background: #fff;
	width: 100%;
	margin: 0 auto;
	font-family: 'Roboto', sans-serif;
	line-height: 1.5;
	font-weight: 300;
	color: #888;
	-webkit-font-smoothing: antialiased;
}

.tabs {
	display: table;
	position: relative;
	overflow: hidden;
	margin: 0;
	width: 100%;
	
	li {
		float: left;
		line-height: 38px;
		overflow: hidden;
		padding: 0;
		position: relative;
	}

	a {
		background-color: #eff0f2;
		border-bottom: 1px solid #fff;
		color: #888;
		font-weight: 500;
		display: block;
		letter-spacing: 0;
		outline: none;
		padding: 0 20px;
		text-decoration: none;
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		border-bottom: 2px solid $green;
	}
}

.tabs_item {
	display: none;
	padding: 30px 0;

	h4 {
		font-weight: bold;
		color: $green;
    font-size: 20px;
	}

	img {
		width: 200px;
		float: left;
		margin-right: 30px;
	}

	&:first-child {display: block;}
}

.current a {
	color: #fff;
	background: $green;
}

// END TAB ~~~~~~~~~~~~~~~ (.)(.)



body {
  background-color: #ddd;
}

h3 {
  margin-top: 0;
}

.badge {
  background-color: #777;
}

.tabs-left { margin-top: 3rem; }

.nav-tabs {
  float: left;
  border-bottom: 0;
  

  li {
    float: none;
    margin: 0;
    
    a {
      margin-right: 0;
      border: 0;
      background-color: #333;
      
      &:hover {
        background-color: #444;
      }
    }
  }
  
  .glyphicon {
    color: #fff;
  }
  
  .active .glyphicon {
    color: #333;
  }
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
  border:0;
}

.tab-content {
  margin-left: 45px;
  
  .tab-pane {
    display: none;
    background-color: #fff;
    padding: 1.6rem;
    overflow-y: auto;
  }
  
  .active { display: block; }
}

.list-group {
  width: 100%;
  
  .list-group-item {
    height: 50px;
    
    h4, span {
      line-height: 11px;
    }
  }
}


            
          
!
            
              $(document).ready(function() { 

	(function ($) { 
		$('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current');
		
		$('.tab ul.tabs li a').click(function (g) { 
			var tab = $(this).closest('.tab'), 
				index = $(this).closest('li').index();
      console.log(tab + ' ' + index); 
			
			tab.find('ul.tabs > li').removeClass('current');
			$(this).closest('li').addClass('current');
			
			tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideUp();
			tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown();
			
			g.preventDefault();
		} );
	})(jQuery);

});

var tabsFn = (function() {
  
  function init() {
    setHeight();
  }
  
  function setHeight() {
    var $tabPane = $('.tab-pane'),
        tabsHeight = $('.nav-tabs').height();
    
    $tabPane.css({
      height: tabsHeight
    });
  }
    
  $(init);
})();
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console