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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="grid">
  <header>
    Header
  </header>

  <aside class="sidebar-left">
    Left Sidebar
  </aside>

  <article>
    Article
    <div>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Architecto, magni. Nihil impedit mollitia provident est inventore vero explicabo quam, illum tenetur quidem dolor rerum debitis odit dicta libero error, amet nulla fuga similique necessitatibus temporibus ipsam facere ad? Ipsam enim quaerat laborum at vel, odit quo repellendus. Quae magni fugiat necessitatibus inventore ex! At id voluptates recusandae voluptatibus autem explicabo doloremque asperiores. Dolores quia distinctio sit ad enim omnis aut deleniti fugit, laudantium, commodi animi veritatis in quos eum inventore est eaque natus laborum, neque voluptas! Excepturi ex autem, porro ab fuga esse animi officiis beatae rem repellat libero, tenetur debitis a aperiam quidem ea iste et? Laudantium libero enim eaque sit repellendus facere, id minima maxime optio nesciunt explicabo consequatur beatae neque tempora velit autem eos illum obcaecati incidunt! Eum modi consequatur iure explicabo repudiandae adipisci quasi architecto, ex molestias labore at nobis obcaecati voluptatibus dolore dolor alias quis quam. Cum iste itaque tempora aspernatur excepturi voluptatum ipsam molestiae eligendi recusandae, nemo repellat dicta odit nesciunt quisquam sunt accusamus error voluptatem molestias, voluptatibus aliquam. Vel culpa dicta molestiae omnis impedit aliquid perferendis hic earum vero beatae, excepturi veritatis accusantium quas quo debitis deserunt. Ab assumenda esse illum quo cum! At corporis dignissimos aut atque enim consectetur distinctio et reprehenderit ad aliquam. Alias ea eligendi illo accusantium ipsam. Veniam, excepturi natus eaque, iusto quas earum facilis est enim illum deserunt, vitae maxime ex? Itaque rem optio facere cumque odio neque nisi sunt velit veniam dolorum ex sed id asperiores reprehenderit, quidem harum error totam atque dolor. Hic veniam culpa placeat tempora esse, quas pariatur, iure voluptate cumque soluta corrupti consequuntur. Aliquid numquam nesciunt corporis fuga, eligendi temporibus est tempora error quod nostrum non dolorem alias asperiores doloribus iusto recusandae cupiditate dolore cum incidunt, fugit reiciendis similique delectus doloremque velit. Libero magni ex quod enim vel at maxime dolorem autem, quam eos necessitatibus quidem velit quasi cum perferendis consequuntur, optio exercitationem quisquam reiciendis rerum explicabo facilis totam nostrum eligendi. Dolor hic nostrum accusamus eum totam non ut harum ipsa pariatur tenetur aliquam, eos dignissimos animi qui debitis nobis possimus ad labore ex magnam. Delectus alias aut in nobis consequatur minus neque optio eius facilis possimus perferendis eveniet impedit fugit dolores rem sapiente, cumque aliquid. Odit minus saepe, numquam cumque animi nihil eos! Dicta beatae laudantium sunt error in ducimus laborum ea voluptate cum voluptatum alias, maxime ipsa nisi rem, illum officiis.</div>
  </article>

  <aside class="sidebar-right">
    Right Sidebar

  </aside>
  
  <footer>
    Footer
  </footer>
</div>
              
            
!

CSS

              
                * {   margin: 0;   padding: 0;   box-sizing: border-box; }  ::before, ::after {   box-sizing:inherit; }

body {
  text-align: center;
  height:100vh;
}

.grid {
  height:100%;
  max-height:100%;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-gap: 4px;
  min-height:0;
}



header,
aside,
article,
footer {
  background: #ccc;
  padding: 1em;
}

header {
  /* Start on Row 1 */
  grid-row: 1;
  /* Start on the first column line and extend all the to the last column line */
  grid-column: 1 / 4;

}

.sidebar-left {
  /* Start on Row 2 */
  grid-row: 2;
  /* Start on the first column line and stop at the next column line */
  grid-column: 1 / 2;
}

article {
  /* Start on Row 2 */
  grid-row: 2;
  /* Start on the second column line and stop at the third column line */
  grid-column: 2 / 3;
  overflow:auto;
}
article div {
  background: white;
}

.sidebar-right {
  /* Start on Row 2 */
  grid-row: 2;
  /* Start on the third column line and stop at the last column line */
  grid-column: 3 / 4;
}

.sidebar-right div {
  background: white;
  height: 350px;
}

footer {
  /* Start on Row 1 */
  grid-row: 3;
  /* Start on the first column line and extend all the to the last column line */
  grid-column: 1 / 4;
}
              
            
!

JS

              
                
              
            
!
999px

Console