css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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 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;
🕑 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.
Loading ..................