Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="group blenderTabs">
        <div class="span_6">
          <ol class="leading--zero">
            <li class="active" data-tab="social"><h3 class="content--inline">Social Excellence</h3></li>
            <li data-tab="operations"><h3 class="content--inline">Operational Excellence</h3></li>
            <li data-tab="organization"><h3 class="content--inline">Organizational Excellence</h3></li>
            <li data-tab="project"><h3 class="content--inline">Project Development Excellence</h3></li>
            <li data-tab="growth"><h3 class="content--inline">Growth Excellence</h3></li>
          </ol>
        </div>
        <div class="span_5 float--right">
          <div id="social" class="tabContent active">
            <h3 class="brand-color">Social Excellence</h3>
            <p class="large">Our people&rsquo;s safety &amp; well being is key to our success</p>
            <p class="large">Execute our business with strong environmental stewardship</p>
            <p class="large">Develop a sustainable approach to CSR</p>
            <p class="large">Develop a robust risk management process</p>
          </div>
          <div id="operations" class="tabContent">
            <h3 class="brand-color">Operational Excellence</h3>
          </div>
          <div id="organization" class="tabContent">
            <h3 class="brand-color">Organizational Excellence</h3>
          </div>
          <div id="project" class="tabContent">
            <h3 class="brand-color">Project Development Excellence</h3>
          </div>
          <div id="growth" class="tabContent">
            <h3 class="brand-color">Growth Excellence</h3>
          </div>
        </div>
      </div>
              
            
!

CSS

              
                /* Main Tab Styles */

.blenderTabs ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.blenderTabs ul li {
	height: 60px;
	margin: 0;
	padding: 26px 0 0 10px;
	border-bottom: 1px solid #fff;
	display: block;
	overflow: hidden;
	cursor: pointer;
}
.blenderTabs li:after {
    content:"+";
    font-size: 40px;
    line-height: 0;
    float: right;
    padding-right: 10px;
}
.blenderTabs li.active:after {
padding-right: 16px;
line-height: 52px;
		-webkit-transform: rotate(-45deg);
		/* Firefox */
		-moz-transform: rotate(-45deg);
		/* IE */
		-ms-transform: rotate(-45deg);
		/* Opera */
		-o-transform: rotate(-45deg);
}

.tabContent{
}
.active.tabContent {display: block !important;}
.leading--zero {
	list-style-type: decimal-leading-zero;
}
ol.leading--zero {
    counter-reset: item;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
ol.leading--zero li { display: block; height: 67px;line-height: 67px; width: 100%; cursor: pointer;overflow: hidden; border-bottom: 1px solid #e7e7e7; }
ol.leading--zero li.active {
  background: #b9c6cf;
  color: #fff;
 }
ol.leading--zero li:before {
    content:"0" counter(item) "  ";
    counter-increment: item;
    font-size: 22px;
    padding: 0 20px 0 10px;
}
ol.leading--zero li:after {
    line-height: 67px;
}

/* Custom Layout */
.blenderTabs {font-family:Helvetica, Arial, sans-serif}
.content--inline {display: inline;}
.span_6 { width: 50%; float:left; }
.span_5 { width: 41.666%;float:right; }
              
            
!

JS

              
                ;(function($){
  $.fn.BlenderTabs = function(options){
    return this.each(function(index, value){
      var obj = $(this),
      objFirst = obj.eq(index),
      objNotFirst = obj.not(objFirst);

      $("#" +  objNotFirst.attr("data-tab")).hide();
      $(this).eq(index).addClass("active");

      obj.click(function(evt){

        toggler = "#" + obj.attr("data-tab");
        togglerRest = $(toggler).parent().find("div.tabContent");

        togglerRest.hide().removeClass("active");
        $(toggler).show().addClass("active");

        //toggle Active Class on tab buttons
        $(this).parent().find("li").removeClass("active");
        $(this).addClass("active");

        return false;
      });
    });
  };
}(jQuery));

/*Initiate Tabs*/
$('.blenderTabs li').BlenderTabs();
              
            
!
999px

Console