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

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.

HTML

              
                <header>Some content inside the header</header>
<aside>A sidebar here</aside>
<main> Caramels cotton candy candy jelly-o macaroon soufflé dragée shortbread toffee. Halvah pastry donut lemon drops shortbread. Danish dragée powder dragée dessert pudding dessert muffin. Marzipan bear claw brownie jujubes powder. Lollipop sesame snaps cake icing apple pie jelly-o chocolate bar pastry brownie. Gummies jelly beans sesame snaps donut candy bear claw chocolate bar icing. Danish jelly beans pudding danish carrot cake cupcake. Chupa chups lemon drops chocolate jelly beans marshmallow topping marzipan. Cake biscuit bear claw cotton candy oat cake bear claw. Jelly candy marzipan cake jelly beans marshmallow fruitcake ice cream. Candy canes jelly beans bear claw soufflé bonbon muffin sesame snaps tootsie roll. Croissant cheesecake shortbread apple pie sweet brownie. Jelly fruitcake danish candy chocolate cake sweet roll. Apple pie tart cheesecake cake croissant halvah sweet roll carrot cake gummi bears.</main>
<footer>Some content inside the footer</footer>
              
            
!

CSS

              
                html {
  display: grid;
  min-height: 100%;
}
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 200px 1fr;
  min-height: 0;
  gap: 8px;
  font-size: 1.2em;
}
header {
  grid-column: 1/-1;
  background: red;
  padding: 1em;
}
main {
  background: lightblue;
  padding: 1em;
  overflow: auto;
}
aside {
  position: sticky;
  top: 8px;
  align-self: start;
  background: orange;
  padding: 1em;
}
footer {
  grid-column: 1/-1;
  background: green;
  padding: 1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console