Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <article class="wrapper">
  
  <h1>Geese</h1>
  <p class="byline">Our garden correspondent</h1>

<div class="thread">
<p>Duis nec pulvinar magna. Cras pellentesque sapien sit amet sem faucibus consequat. In ac sapien et orci luctus feugiat. Curabitur eget neque sed nibh elementum bibendum. Morbi faucibus nisl a quam vehicula varius. Nunc egestas a mi eu facilisis. Donec luctus ornare ullamcorper.</p>

<p>Curabitur id enim ac velit pulvinar tincidunt dapibus vitae libero. Nulla egestas venenatis ex, et rhoncus ex molestie sed. Aenean convallis dolor vel ipsum condimentum, rhoncus venenatis dolor egestas. Curabitur id sapien placerat, porta tellus vel, viverra odio. Sed dapibus ultricies tempor. Nunc nec metus ipsum. Etiam nec lacus eros. Ut interdum eget orci eu maximus. Curabitur sodales eget massa eu ullamcorper. Mauris lobortis lacus at elit tempor, et pharetra enim malesuada.</p>

<p>Aenean vestibulum, urna non porta viverra, dolor nulla luctus ex, at pulvinar metus tellus nec ligula. Nullam eros urna, rhoncus sit amet lacinia fringilla, accumsan vel neque. Nullam sodales efficitur sagittis. In eu sapien vel leo fringilla semper ut eu magna. Aliquam erat volutpat. In iaculis sem sed ornare porttitor. Proin ex purus, eleifend quis dui bibendum, egestas accumsan diam. Aliquam mauris mi, finibus id quam et, viverra condimentum ante. Sed posuere nibh vitae neque tincidunt eleifend. Aenean vel bibendum sem, ut efficitur nisl. Aliquam mollis iaculis varius. Donec interdum massa ut justo lacinia laoreet. Quisque scelerisque risus sit amet cursus fermentum. Nulla faucibus erat consectetur velit commodo, sed accumsan lacus commodo. Cras sit amet ipsum ut metus laoreet sollicitudin quis faucibus nisi. Donec scelerisque id nibh id auctor.</p>

<p>Quisque elit neque, laoreet sed metus sagittis, aliquet vulputate orci. Vestibulum feugiat ligula risus, a efficitur magna imperdiet non. Morbi tempor, urna at sagittis venenatis, purus felis ornare leo, sit amet luctus eros quam sit amet lectus. Nulla odio tortor, molestie ornare consequat non, porttitor vitae elit. Curabitur maximus pretium nisi et porttitor. Etiam posuere ullamcorper consequat. Aenean a eleifend magna. Vestibulum nec molestie mi. Sed nulla ligula, mollis sit amet placerat volutpat, imperdiet sed lorem.</p>
</div>
<figure class="geese1">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/18106206256_db458f0c58_z.jpg" alt="fig1">
  <figcaption><a href="https://www.flickr.com/photos/132033298@N04/18106206256/">Geese</a></figcaption>
</figure>
 <figure class="geese2">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/2484281394_620764ce90_z.jpg" alt="fig1">
  <figcaption><a href="https://www.flickr.com/photos/atoach/2484281394">Goose</a></figcaption>
</figure>
<blockquote class="quote">
  <p>Geese deserve more articles in Wikipedia.</p>
</blockquote>
</article>
            
          
!

CSS

            
              h1 {
  font-size: 30vw;
}

img {
  max-width: 100%;
}

.byline {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: .5rem 0;
}


@media (min-width: 400px) {
  .wrapper {   
    display: grid;
    grid-template-columns: 1fr 1fr;
  }  
  
  h1 {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  
  .quote {
    font-size: 150%;
    grid-column: 1;
    grid-row: 4;
    wrap-flow: both;
  }
  
  .byline {
    grid-column: 2;
    grid-row: 2;
    wrap-flow: both;
  }
  
  .geese1 {
    grid-column: 1 / 3;
    grid-row: 5;
    wrap-flow: both;
  }
  
  .thread {
    grid-row: 2 / 7;
    grid-column: 1 / 3;
    column-count: 2;
  }

}

@media (min-width: 840px) {
  .wrapper {
    grid-template-columns: 200px 1fr 1fr 1fr 1fr;
  } 
  
  h1 {
    grid-column: 2 / 4 ;
    grid-row: 1;
    font-size: 15vw;
    wrap-flow: both;
  }
  
  .quote {
    grid-column: 1 /  3;
    grid-row: 6;
    wrap-flow: both;
  }
  
  .byline {
    grid-column: 3;
    grid-row: 2;
    wrap-flow: both;
  }
  
  .geese1 {
    grid-column: 4 / 6;
    grid-row: 6;
    wrap-flow: both;
  }
  
  .geese2 {
    grid-column: 5 ;
    grid-row: 1 / 4;
    wrap-flow: both;
  }
  
  .thread {
    grid-row: 1 / 7;
    grid-column: 2 / 7;
    column-count: 4;
  }
  
}


}
            
          
!

JS

            
              
            
          
!
999px

Console