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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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