Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

  <nav>Hello Simple Grid</nav>
    <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>
    About | Contact | Etc...
              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;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.