Pen Settings

HTML

CSS

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

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

              
                <app>
  <nav>Hello Simple Grid</nav>
  <main>
    <section class="bigly">
      <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Debitis dicta similique quam fuga laborum earum ea adipisci possimus cupiditate atque libero accusamus iusto inventore optio, nisi, modi obcaecati! Eveniet, illum!</p>
      <p>Non maiores placeat officia, quisquam excepturi quam quod cum et dignissimos laudantium, doloremque natus voluptas aperiam similique saepe alias optio corporis accusantium. Sunt earum in esse facere optio veritatis aperiam.</p>
      <p>Et dolores obcaecati cupiditate fuga eum voluptas, dicta ut magni consequuntur ipsa illo? Tempore, amet delectus neque iste earum voluptates veniam, sint excepturi ab soluta facere, qui explicabo temporibus inventore.</p>
      <p>Harum enim quae provident laborum veritatis at libero odit, nostrum sapiente hic pariatur consectetur omnis iste aperiam ullam, officia repudiandae maxime facere voluptates repellendus praesentium esse sit beatae. Ullam, esse.</p>
      <p>Tenetur repellat pariatur aut ad officiis possimus? Nesciunt commodi eum dolore quis distinctio perferendis sequi sapiente odit officia provident, rerum libero et dolores molestias. Quae voluptatum dicta laboriosam maiores qui.</p>
    </section>
  </main>
  <footer>
    About | Contact | Etc...
  </footer>
</app>
              
            
!

CSS

              
                html, body {
  margin: 0;
  padding: 0;
}

app {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  
  nav, footer {
    background-color: cornflowerblue;
    padding: 5px 10px;
  }
  
  main {
    background-color: white;
    padding: 10px;
    overflow-y: auto;
    .bigly {
      //overflow-y Doesn't matter here, has to be on the outer element...
      //overflow-y: auto; 
      padding: 5px;
      height: 1000px; //force overflow
      background-color: silver;
      
      p {
        margin: 0;
        + p {
          margin-top: 15px;
        }
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console