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="row">
  <div class="block col-2">2 колонки</div>
  <div class="block col-3">3 колонки</div>

<div class="row">
  <div class="block col-1">1 колонка</div>
  <div class="block col-4">4 колонки</div>

<div class="row">
  <div class="block col-5">5 колонок</div>


                /*Setup Environment */
html                 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body                 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:16px; margin:0; padding:0; }
.block               { float:left; display:inline-block; background-color:#999999; color:#000000; font-size:0.8em; text-align:center; line-height:4em; border:1px solid white;  }

Calc Demo Quick and Dirty Fluid Grid system
If we need a quick grid system to test, apply to a legacy or internal system in a hurry, calc makes it so simple.


.row                 { width:100%;  margin-bottom:10px; }
.row:after           { content: " "; display: table; }
.row:after           { clear: both; }

All we do is:
 - Set the width to 100%
 - Divide by the total column number
 - Multiply the result by the number of columns we need.

.col-1              { width:calc(100% / 5 * 1); }
.col-2              { width:calc(100% / 5 * 2); }
.col-3              { width:calc(100% / 5 * 3); }
.col-4              { width:calc(100% / 5 * 4); }
.col-5              { width:calc(100% / 5 * 5); }