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.


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="wrapper">
  <div class="box a">
    <p>This is box A. </p>
  <div class="box b">
    <p>This is box B.</p>
  <div class="box c">
    <p>This is box C.</p>

  <div class="box d">
    <p>This is box D.</p>
  <div class="box e">
    <p>Each of the boxes on the left has a grid area of 3 columns and 3 rows (we're counting the gutter col/row). </p>
    <p>The justify-items property is used to justify the content inside each grid-area.</p>
    <p>Other values of justify-items are:</p>


                body {
  margin: 40px;
  font: 80% Arial, Helvetica, sans-serif;

.wrapper {
  display: grid;
  justify-items: center;
  background: no-repeat url(;
    grid-gap: 10px;
  grid-template-columns:  repeat(6, 150px);
  grid-template-rows: repeat( 4, 150px);
  background-color: #fff;
  color: #444;

.box {
  border: 1px solid #444;
  padding: 20px;
  font-size: 150%;

.a {
  grid-column: 1 / 3;
  grid-row: 1 / 3;

.b {
  grid-column: 3 / 5;
  grid-row: 1 / 3;

.c {
  grid-column: 1 / 3;
  grid-row: 3 /  6;

.d {
  grid-column: 3 / 5;
  grid-row: 3 / 6;

.e {
  grid-column: 5 / 7;
  grid-row: 1 / 6;
  align-self: stretch;