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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.

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.


                <div class="content">
       <ul class="tabs" data-tabs id="example-tabs">
          <li class="tabs-title is-active">
              <a aria-selected="true" href="#panel1">Summary</a>
          <li class="tabs-title">
              <a href="#panel2">Open Opportunities</a>

   <div class="tabs-content" data-tabs-content="example-tabs">      
      <div class="tabs-panel is-active" id="panel1">
         <h3>Tab 1 content</h3>
            Addition tab 1 content here.

      <div class="tabs-panel" id="panel2">
         <h3>Tab 2 content</h3>
            Addition tab 2 content here.




    See this CodePen blog post for more info:
$(function() { 
   // Wire up change vent for each tab. 
   $('#example-tabs').on('change.zf.tabs', function() {
      // The debugger statement is used to establish 
      // a JavaScript breakpoint in browser dev tools.
      if ($('#panel1:visible').length) {
          console.log('Tab 1 panel shown.');          
      if ($('#panel2:visible').length) {
          console.log('Tab 2 panel shown.');
   // Initialize the Foundation framework.
   // Ensure change event fires for default active tab. 
   // If you comment this line out, the change event 
   // isn't called for the initally displayed tab.
   $('#example-tabs').foundation('selectTab', 'panel1');