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.

            
              <div class="grid">
  <h1>Grid Layout & custom properties</h1>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, est? Nobis cupiditate ab amet delectus praesentium fuga excepturi expedita cumque corrupti, ipsam dolorum non. Eligendi eum repellendus ipsam veritatis alias.</p>
  <p style="--start:1; --end:6; --end-xl: 8"> Perspiciatis impedit unde nostrum iste libero soluta omnis hic accusantium</p>
  <p style="--start: 6; --end: 20; --start-xl: 8;">Corporis cum reprehenderit sint voluptatem animi ab ea, ad, nam esse nobis qui expedita molestias, porro dolores facilis quod quam necessitatibus minus ipsa. Laboriosam, corrupti. Sit, sed. Quos, exercitationem quae.</p>
  <p>Adipisci in obcaecati magni? Laboriosam quam voluptates esse est perferendis, asperiores consectetur numquam, quo ipsam iure incidunt odit vel officiis non? Dolor voluptatum ducimus earum sed rerum laborum pariatur obcaecati!</p>
  <p style="--end-xl: 10;">Ab vero rerum quae suscipit distinctio animi cumque consectetur exercitationem illum soluta saepe laborum corporis iure quia ullam maiores accusamus tempora eveniet rem, earum fuga repellat. Aspernatur similique quis voluptates?</p>
  <p  style="--start-xl: 11;">Natus veritatis assumenda velit dolore error facere est, esse, ducimus omnis, expedita inventore sint eos quam. Sunt cum libero et quas, dolor excepturi corrupti magni incidunt iste nulla minima sequi.</p>
  <p>Magni voluptatum impedit voluptate necessitatibus est eos non neque ipsum maxime nobis veniam, voluptas eveniet perferendis quasi voluptatibus doloremque, nisi molestiae exercitationem vel sed error in similique ad quas. Neque?</p>
  <p style="--start:1; --end: 6;">Quisquam, ratione eos! Provident dolor totam, possimus numquam, corporis consequuntur voluptatum voluptates aut quo officia suscipit deleniti, itaque minima minus voluptatem perspiciatis cupiditate modi dignissimos at praesentium! Aut, explicabo illo?</p>
  <p style="--start: 7; --end: 14;">Accusantium voluptatum deserunt voluptatem omnis consequatur aperiam inventore, vel, voluptatibus voluptate corrupti sapiente pariatur sunt, excepturi culpa. Pariatur, dolorem odit sapiente iusto molestias delectus impedit, fugit ea, quaerat reprehenderit eos!</p>
  <p style="--start: 15; --end: 20">Expedita atque dolorem blanditiis quisquam animi exercitationem nobis veritatis temporibus cumque eos, ea similique quaerat perspiciatis incidunt aliquam debitis veniam, dolores officiis. Alias excepturi at quisquam iusto, totam obcaecati ad.</p>
  <p style="--end-xl: 8;">Magnam sed culpa vitae dolores placeat quae aliquid soluta illum blanditiis architecto at iure aperiam ratione repellendus similique, ut sint labore expedita. Laboriosam, ipsum sapiente quae dignissimos eveniet saepe modi.</p>
  <p style="--start-xl: 9;">Lorem ipsum dolor sit amet consectetur adipiscing elit accumsan hendrerit, habitasse donec sapien tristique sem fringilla lacinia suscipit cursus, leo placerat vivamus aliquet vestibulum dui ultrices vehicula. Natoque sem facilisis nullam bibendum dictum parturient suscipit augue habitant, fermentum rutrum ridiculus rhoncus non himenaeos tortor aliquam euismod arcu, aenean eget lectus sodales pretium posuere condimentum mus. Aliquet suspendisse turpis tristique fermentum habitasse felis ultrices, conubia porta inceptos arcu eu vitae suscipit senectus, dictumst libero sapien imperdiet pulvinar accumsan.</p> 

  <p>Illum vero asperiores beatae, dignissimos similique animi voluptatibus praesentium debitis sit aliquid, vitae esse ratione quos voluptatum</p>
  <p style="--start: 1; --end: 20">Sollicitudin ac natoque cursus feugiat urna quis sed mattis, eros per vehicula dictum tempor at diam velit magna, penatibus justo inceptos ligula orci aptent quisque. Risus ante erat per fames vivamus etiam cum, felis primis pharetra dapibus nulla aenean praesent, vehicula vel neque torquent parturient mauris. Ad urna sagittis fusce sapien nisl aptent eget hac leo, accumsan class hendrerit in montes quisque eu duis nostra, erat interdum cubilia maecenas phasellus turpis natoque sem.</p>
</div>
            
          
!
            
              .grid {
  padding: 10vh 0;
  max-width: 680px;
  width: 100%;
  margin:auto;
  grid-template-columns: 2fr [content-start] repeat(17, 1fr) [content-end] 2fr;
  display: grid;
  grid-row-gap: calc(1rem + 1vh);
}

.grid > * {
  margin: 0;
  grid-column-start: var(--start, content-start);
  grid-column-end: var(--end, content-end);
}

@media(min-width: 600px) {
  .grid > * {
    grid-column-start: var(--start-xl, 
                       var(--start, content-start));
    grid-column-end:   var(--end-xl, 
                       var(--end, content-end));
  }
}






body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont,
    “Segoe UI”, “Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”,
    “Fira Sans”, “Droid Sans”, “Helvetica Neue”,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
[style] {
  background-color: #f4f4f4; 
  padding: 20px;
}
            
          
!
999px
🕑 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 ..................

Console