cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              <section class="grid">
    <h1>Grid Column Spans</h1>
  <div class="start-short">
    <h2>Short Blurb</h2>
    Lorem ipsum dolor sit amet.
  <div class="promo-image-1">
    <img src="http://loremflickr.com/640/480/reykjavik,iceland"/>
  <div class="promo-image-2">
    <img src="http://loremflickr.com/640/480/bremen,germany"/>
  <div class="promo-image-3">
    <img src="http://loremflickr.com/640/480/chamonix"/>
  <div class="promo-image-4">
    <img src="http://loremflickr.com/640/480/montmartre,paris"/>
  <div class="end-short">
    <h2>Short Blurb 2</h2>
    <p>Lorem ipsum dolor sit amet.</p>
  margin: 0 auto;
  max-width: 150ch;
  display: grid;
  grid-gap: 1em 2ch;
  grid-template-columns: repeat(7, 1fr);

.grid > *{
  background-color: lightgray;

.grid header{
  border-bottom: 1px solid gray;
  grid-column: 1 / -1;

  // Span 3 columns, no matter where it appears in the grid
  grid-column-end: span 3;

  width: 100%;
  display: block;
Loading ..................