Pen Settings



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


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.


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.


                <div id="tabstrip">
    <span>Tab 1</span>
    <span>Tab 2</span>
    <span>Tab 3</span>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis,
        sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus.
        Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a
        Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by
        their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic
        life One day however a small line of blind text by the name of Lorem Ipsum decided to
        The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt
        fox. Bright vixens jump; dozy fowl quack. Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get
        my woven flax jodhpurs! "Now fax quiz Jack! " my brave

<script async type="text/javascript" src="//" id="_carbonads_js"></script>


                body {
    font-family: "Montserrat";
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: #24292e;
    background-color: #321a44;

#tabstrip {
    padding: 0em;
    width: 75%;

.tab {
    font-family: "Montserrat";
    font-weight: 400;
    cursor: pointer;
    float: left;
    margin: 0 0.2em 0 0;
    min-width: 3em;
    overflow: hidden;
    padding: 0.625em;
    white-space: nowrap;
    color: #ffffff;

.activeTab {
    background-color: #221ee4;

.inactiveTab {
    background-color: #937099;

.activePanel {
    color: #ffffff;
    background-color: #221ee4;
    clear: both;
    display: block;
    padding: 1em;

.inactivePanel {
    display: none;



                "use strict";

var tabs = document.querySelectorAll("#tabstrip > span"),
    panels = document.querySelectorAll("#tabstrip > div"),
    length = tabs.length,

function getToggler(newTab, newPanel) {
    return function () {
        currentTab.className = "tab inactiveTab";
        currentPanel.className = "inactivePanel";
        newTab.className = "tab activeTab";
        newPanel.className = "activePanel";
        currentTab = newTab;
        currentPanel = newPanel;

if (length !== panels.length)
    throw new Error(
        "Number of tabs (" + length + ") and number of content panels (" + panels.length + ") are not equal"

for (var i = 0; i < length; i++) {
    var tab = tabs[i];
    var panel = panels[i];

    tab.className = "tab inactiveTab";
    tab.addEventListener("click", getToggler(tab, panel), false);
    panel.className = "inactivePanel";

currentTab = tabs[0];
currentPanel = panels[0];
currentTab.className = "tab activeTab";
currentPanel.className = "activePanel";