Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="section group main">

<div class="col span_2_of_8 sidebar left matchheight">
{embed="Westeros/Layout_Sidebar_Left"}
</div>

<div class="col span_4_of_8 middle matchheight tall">

MAIN CONTENT

</div>

<div class="col span_2_of_8 sidebar right matchheight">
{embed="Westeros/Layout_Sidebar_Right"}
</div>

</div>
              
            
!

CSS

              
                Wrapper {

    margin:2em 2%;
    }

    .section {
    clear: both;
    padding: 0px;
    margin: 0px;
    display: flex;
    }

.tall {
  height: 200px;
}

    .col {
    display: block;
    float:left;
    margin: 1% 0 1% 2%;
    border:1px solid grey
    }

    .col:first-child { margin-left: 0; }

    .group:before,
    .group:after { content:""; display:table; }
    .group:after { clear:both;}
    .group { zoom:1; /* For IE 6/7 */ }

    .span_8_of_8 {
    width: 100%;
    }

    .span_7_of_8 {
    width: 87.25%;
    }

    .span_6_of_8 {
    width: 74.5%;
    }

    .span_5_of_8 {
    width: 61.75%;
    }

    .span_4_of_8 {
    width: 49%;
    }

    .span_3_of_8 {
    width: 36.25%;
    }

    .span_2_of_8 {
    width: 23.5%;
    }

    .span_1_of_8 {
    width: 10.75%;
    }

    @media only screen and (max-width: 480px) {
    .col { margin: 1% 0 1% 0%; }
    .span_1_of_8, .span_2_of_8, .span_3_of_8, .span_4_of_8, .span_5_of_8, .span_6_of_8, .span_7_of_8, .span_8_of_8 { width: 100%; }
    }

    .middle {
    box-sizing: border-box;
    padding:0px 1% 0px 1%;
    }
              
            
!

JS

              
                
              
            
!
999px

Console