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="content">
  <div class="tabs">
    <div class="tabs-nav">
      <a class="tabs-nav__item js_tabs active" href="#skydive">Skydive</a>
      <a class="tabs-nav__item js_tabs" href="#base">BASE</a>
    </div>
    <div class="tabs-wrapper">
      <div id="skydive" class="tabs-wrapper__item active">Parachuting (or skydiving from the English sky diving — literally translated as "diving from heaven") is one of the types of aviation sports associated with the use of parachutes. The goals and objectives of parachuting were constantly changing. If the parachute was originally intended to save lives, later it became an important element of landing training. Modern parachuting includes disciplines related to precise piloting of the dome, such as dome acrobatics, precision landing and swoop, as well as various artistic sports such as freestyle, free fall, group acrobatics and freefly</div>
      <div id="base" class="tabs-wrapper__item">Jumping with a special parachute from fixed objects: roofs of multi-storey buildings, bridges, cliffs, towers. Athletes jump from relatively low bases — usually 50-100 meters.</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                html, body {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.content {
  width: 80%;
}

.tabs {
  
  &-nav {
    margin-bottom: 20px;
    
    &__item {
      color: #333;
      font: 28px/28px "Verdana";
      text-decoration: none;
      opacity: .6;
      margin-right: 20px;
      
      &.active {
        opacity: 1;
      }
    }
  }
  
  &-wrapper {
    
    &__item {
      font: 20px/30px "Verdana";
    }
  }
}
              
            
!

JS

              
                var tab = $('.tabs .tabs-wrapper > div'); 
	tab.hide().filter(':first').show(); 
	
	// Клики по вкладкам.
	$('.tabs .tabs-nav a').click(function(){
		tab.hide(); 
		tab.filter(this.hash).show(); 
		$('.tabs .tabs-nav a').removeClass('active');
		$(this).addClass('active');
		return false;
	}).filter(':first').click();
              
            
!
999px

Console