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

+ add another resource


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


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.


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.


  <nav>Hello GridLock</nav>
    <section class="ads left">
      <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iste, laborum. Quo accusamus, impedit culpa, repellat ea, expedita atque dolor nam est neque cupiditate tenetur harum unde. Repellendus a voluptas iste!</p>
      <p>Est veniam ducimus repudiandae distinctio! Ducimus labore, officiis quibusdam atque ab incidunt nesciunt sequi, itaque odit iure placeat nulla veritatis. Quas veniam quibusdam modi veritatis explicabo excepturi sed eos alias.</p>
      <p>Repellat harum delectus nisi. Aliquid dignissimos voluptatum voluptate, eius asperiores libero deleniti vero officia et. Quaerat, molestias facilis! Nihil, sit. Consequatur iure doloribus repudiandae nesciunt. Provident odio aspernatur illo nulla.</p>
      <p>Qui dignissimos quis velit a quod cum eius deleniti voluptate, aspernatur temporibus libero deserunt quia officia exercitationem cumque. Incidunt delectus accusantium numquam aut culpa distinctio maiores odio quis assumenda facere.</p>
    <section class="content">
<!--have to have an inner-wrapper 
    in order to force the inner content 
    to scroll vertically - 
    even though content should only be 1fr
      <div class="container">
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. A eveniet enim deserunt dolor quam tenetur, consequatur repellendus vero excepturi. Inventore laborum possimus porro qui laudantium debitis praesentium corrupti iure molestiae.</p>
        <p>Vitae ipsa quae aspernatur, voluptate aperiam dignissimos explicabo provident. Ducimus aliquam, sunt sequi laudantium vel delectus velit labore nemo tenetur minus, nulla amet inventore eius vero ipsam. Facilis, hic esse?</p>
        <p>Ullam sed dolorem quo minus, cupiditate modi porro dolore? Quaerat dolorum mollitia at maiores, velit neque explicabo consequuntur doloribus ullam, tempore libero commodi, voluptas ea architecto tempora deleniti quis ex?</p>
        <p>Nam, voluptatem sit nemo odio omnis at rem soluta, dolor, ipsa aut eligendi! Numquam soluta excepturi, sequi, voluptatibus, voluptate laudantium quaerat deleniti assumenda libero consequatur ipsum. Fuga sequi dignissimos sapiente.</p>
        <p>Nesciunt harum voluptatibus iusto laborum sit illum. Vero id, illo sequi maxime reiciendis amet placeat fuga voluptatum distinctio qui perspiciatis nobis cumque dolore impedit, ullam quo fugit, doloremque iste quos!</p>
    About | Contact | Etc...


                html, body {
  margin: 0;
  padding: 0;
  height: 100%;

app {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  nav, footer {
    background-color: cornflowerblue;
    padding: 5px 10px;
  main {
    background-color: white;
    padding: 10px;
    display: grid;
    grid-template-columns: 175px 1fr;
    grid-column-gap: 10px;
    //Even though we have overflow-y on the .ads and .content,
    //still have to have it here to keep
    //content from growing outside the grid row definition
    overflow-y: auto;
    .ads, .content {
      background-color: silver;
      overflow-y: auto;
      padding: 10px;
      p {
        margin: 0;
        + p {
          margin-top: 15px;
    .content .container {
      height: 1200px;