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.

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

Console