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.

            
              <article class="site-content">

  <figure class="alignfull">
    <img src="https://cldup.com/m7_aXlDCXw.jpg" alt="">
  </figure>

    <p><strong><a href="https://codepen.io/joen/pen/zLWvrW">Please see the updated version of this example here</a>.</strong></p>

  <p>Eu integre accusata prodesset est, sed te impetus gubergren conceptam, ex sed wisi nostrum ocurreret. Esse velit omittantur ius te, alii dissentias ei vis. At sed unum veritus fabellas. Te volutpat appellantur duo. Ad natum fuisset intellegebat eam,
    causae invidunt usu id, et vis impetus appetere. </p>

  <p>Ea veniam homero eam. Ex inimicus molestiae cum, debet scaevola at eos. Vis assum veritus ut, has ea nostrud accusata, offendit appareat comprehensam ea pro. Ad quo quem veritus appellantur, te est quas phaedrum, eum alia habeo ad. Ei est erroribus
    imperdiet, omnis dicam propriae sed no. His vitae oratio fierent ne, cu duo tota eligendi, electram rationibus in qui.</p>

  <figure class="alignleft">
    <img src="https://cldup.com/yPKF2vjugC.jpg" alt="">
    <figcaption>Image caption.</figcaption>
  </figure>

  <p>Est quis reque cetero ad. Sea id autem nominavi deseruisse. Veniam qualisque definitionem pri id, ea autem feugiat delenit ius, mei at lorem affert accumsan. Dicat eruditi cu est, te pro dicant pericula conclusionemque, ei vim detracto euripidis intellegam.
    Eius postea volumus mei ad.</p>

  <p>Prima ridens denique his te, ferri illum volumus an his. Eu vel dicat homero qualisque, vitae regione deserunt vis ei. Graeci incorrupte liberavisse no mea, saepe voluptaria usu ex, vis dicant euismod id. At dolor reprimique eos, quo altera detraxit
    moderatius id. Quo iudico utinam eu, ad alia munere mel.</p>

  <figure class="alignright">
    <img src="https://cldup.com/lUUQPv6w9c.jpg" alt="">
  </figure>

  <p>Lorem ipsum dolor sit amet, ferri vidisse nam eu, ad nec copiosae mnesarchum vituperatoribus. Te brute dicunt sea, ut vis omnium menandri, ut sumo aliquam has. Eum aperiam interpretaris at, sea et recusabo expetenda, omnis tibique mea no. Pri suas partem
    ea, ius sonet numquam offendit cu, ad simul admodum pri. Eum cu unum choro albucius.</p>

  <p>Eu integre accusata prodesset est, sed te impetus gubergren conceptam, ex sed wisi nostrum ocurreret. Esse velit omittantur ius te, alii dissentias ei vis. At sed unum veritus fabellas. Te volutpat appellantur duo. Ad natum fuisset intellegebat eam,
    causae invidunt usu id, et vis impetus appetere.</p>

  <p>Ea veniam homero eam. Ex inimicus molestiae cum, debet scaevola at eos. Vis assum veritus ut, has ea nostrud accusata, offendit appareat comprehensam ea pro. Ad quo quem veritus appellantur, te est quas phaedrum, eum alia habeo ad. Ei est erroribus
    imperdiet, omnis dicam propriae sed no. His vitae oratio fierent ne, cu duo tota eligendi, electram rationibus in qui.</p>

  <figure class="alignwide">
    <img src="https://cldup.com/kAIpBuzEXf.jpg" alt="">
  </figure>

  <p>Est quis reque cetero ad. Sea id autem nominavi deseruisse. Veniam qualisque definitionem pri id, ea autem feugiat delenit ius, mei at lorem affert accumsan. Dicat eruditi cu est, te pro dicant pericula conclusionemque, ei vim detracto euripidis intellegam.
    Eius postea volumus mei ad.</p>

  <p>Prima ridens denique his te, ferri illum volumus an his. Eu vel dicat homero qualisque, vitae regione deserunt vis ei. Graeci incorrupte liberavisse no mea, saepe voluptaria usu ex, vis dicant euismod id. At dolor reprimique eos, quo altera detraxit
    moderatius id. Quo iudico utinam eu, ad alia munere mel.</p>

</article>
            
          
!
            
              body {
  margin: 0;
  font-size: 14pt;
  line-height: 1.6;
}

p {
  margin: 2em 0;
}

figure {
  margin: 0;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
}


/**
 * Fullwide CSS
 */

/* Unconstrained main column */
.site-content > *:not( .alignwide ):not( .alignfull ) {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  display: block;
  text-align: center;
}

.alignwide {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.alignleft img {
  display: block;
  float: left;
  width: 60%;
  margin-right: 2em;
}

.alignright img {
  display: block;
  float: right;
  width: 60%;
  margin-left: 2em;
}

.alignright figcaption,
.alignleft figcaption {
  font-size: 75%;
  color: gray;
  width: 60%;
  margin-bottom: 1em;
}

.alignleft figcaption {
  float: left;
  clear: left;
  margin-right: 2em;
}

.alignright figcaption {
  float: right;
  clear: right;
  margin-left: 2em;
}
            
          
!
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