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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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="tab-wrap">
  <ul class="tab-head">
    <li class="tablink tab-active" onclick="openCity(this,'tabone')" data-target="tabone">
      Tab One
    <li class="tablink" onclick="openCity(this,'tabtwo')" data-target="tabtwo">
      Tab Two

  <div class="tab-main">
    <div id="tabone" class="tabcontent active">
      <h1>First Tab Content</h1>
      <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
    <div id="tabtwo" class="tabcontent">
      <h2>Second Tab Content</h2>
      <p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>


                *{margin:0; padding:0;}
p{line-height:1.7; color:rgba(0,0,0,0.54);}
body{ font-family:"arial"; font-size:16px; line-height:1.5; padding:50px 0;}
h1, h2{ font-size:24px; font-weight:400; margin-bottom:10px;}
.tab-wrap{max-width:600px; width:90%; margin:0 auto;}
.tab-wrap .tab-head{border-bottom:1px solid #ccc; text-align:center; display:table;width:100%}
.tab-wrap *{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}
.tab-wrap .tablink{display:table-cell;border-bottom:3px solid transparent;width:50%;padding:16px 8px;color:rgba(0,0,0,0.87); cursor:pointer;}
.tab-wrap{border-color:#12a7c8; color:#12a7c8;}
.tab-wrap .tab-main{border:1px solid rgba(0,0,0,0.1); padding:0 20px 20px; border-top:0;}
.tab-wrap .tabcontent{display:none;padding-top:20px; font-size:15px; color:rgba(0,0,0, 0.87);}


                // Javascript Tabbing Function Start ======
function openCity(evt, cityName) {
  var i, x, tablinks;
  x = document.getElementsByClassName("tabcontent");
  tablinks = document.getElementsByClassName("tablink");
  for (i = 0; i < x.length; i++) {
      var target = tablinks[i];
  var target =;
// Javascript Tabbing Function End ======