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 class="faux-wrapper"></div>


                $header-height: 40px;
$nav-width: 80px;

.faux-wrapper {
  background: transparent;

  &:before {
    content: '';
    position: fixed;
    top: $header-height;
    left: 0;
    width: calc((#{100%} - #{$nav-width}) * 0.75 + #{$nav-width});
    height: 100%;
    /* Black navigation bar + white content thereafter */
    background: linear-gradient(90deg, #2B3945 80px, white 80px);
    border-right: 1px #CCC solid;
    z-index: -1;

  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: $nav-width;
    right: 0;
    z-index: -1;
    height: 157px;
    /* white page title section followed by 1px border, a tab menu and again a 1px border */
    background: linear-gradient(180deg, #e8ebef  40px, white 40px, white 120px, #C3CAD3 121px, #E8EBEF 122px, #e8ebef 156px, #C3CAD3 157px);