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.

+ 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.

            
              <main>
  <article>
    <h1>Lorem ipsum dolor</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipiscing, elit inceptos nunc et litora, cras class id morbi viverra.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-kimon-maritz-183501-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Fusce eget</h1>
    <p>Placerat massa, vel porta lacus.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-simone-hutsch-384766-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Nullam bibendum </h1>
    <p>Hendrerit augue, sed tempus odio sagittis nec. Ut ipsum lorem, scelerisque ac vestibulum et, tincidunt eget urna. Phasellus pellentesque nec urna id elementum. Proin consectetur finibus lacinia.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-meric-dagli-388890-unsplash.jpg" alt="generic image">
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Maecenas a urna metus</h1>
    <p>Vivamus ac euismod ante.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-dmitri-popov-93222-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>

  <article>
    <h1>Vivamus ut risus porttitor</h1>
    <p>Porttitor ligula a, maximus risus. Donec maximus vulputate mauris, vel placerat diam interdum eu. Nam tempus diam eget blandit efficitur. Etiam sed porta nisi. Donec sit amet sapien in est pellentesque sollicitudin. Donec nec erat efficitur, efficitur purus vel, vehicula odio. </p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-dmitri-popov-78926-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Vivamus ut risus porttitor</h1>
    <p>Porttitor ligula a, maximus risus. Donec maximus vulputate mauris, vel placerat diam interdum eu. Nam tempus diam eget blandit efficitur. Etiam sed porta nisi. Donec sit amet sapien in est pellentesque sollicitudin. Donec nec erat efficitur, efficitur purus vel, vehicula odio. </p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-simone-hutsch-384848-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Fusce eget</h1>
    <p>Placerat massa, vel porta lacus. Proin consectetur finibus lacinia.</p>
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Lorem ipsum dolor</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipiscing, elit inceptos nunc et litora, cras class id morbi viverra.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-dmitri-popov-326976-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Nullam bibendum </h1>
    <p>Hendrerit augue, sed tempus odio sagittis nec. Ut ipsum lorem, scelerisque ac vestibulum et, tincidunt eget urna. Phasellus pellentesque nec urna id elementum. </p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-joel-filipe-163662-unsplash.jpg" alt="generic image">
    <a>Vivamus felis</a>
  </article>
  
  <article>
    <h1>Maecenas a urna metus</h1>
    <p>Vivamus ac euismod ante.</p>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/ARCH-simone-hutsch-384853-unsplash.jpg" alt="generic image" />
    <a>Vivamus felis</a>
  </article>

</main>
            
          
!
            
              * { box-sizing: border-box; }
body { margin: 2rem; font-family: Avenir, Roboto, Helvetica, san-serif; 
  font-size: 90%; background: #ddd;}

main { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
}
article {
  display: flex;
  flex-flow: column;
  background: white;
  padding: 2rem;
}
h1 {
  margin: 1em 0 0;
  line-height: 1.2;
  font-weight: normal;
}
p {
  margin: 0.6em 0 2rem;
}
img {
  order: -1;
  align-self: center;
  width: 100%;
}
a {
  display: block;
  text-align: center;
  margin-top: auto; 
  background: #B0B5C2;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0 0.3rem;
}

            
          
!
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