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.

            
              <figure>
  <picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
    <source srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/runner-wide.jpg" media="(min-width: 1200px)">
    <source srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/runner-narrow_copy.jpg" media="(min-width: 800px)">
<!--[if IE 9]></video><![endif]-->
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/male-runner-square.jpg" srcset="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/male-runner-square.jpg" alt="Photograph of a man running along a pier during sunset, with a harbour in the background">
</picture>
<figcaption>Resize the browser to see the different responsive art-directed images</figcaption>
</figure>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula risus. Maecenas suscipit augue ac sapien commodo bibendum. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula risus. Maecenas suscipit augue ac sapien commodo bibendum. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula risus. Maecenas suscipit augue ac sapien commodo bibendum. Phasellus ligula mi, posuere id ultrices in, fringilla vehicula.
            
          
!
            
              body { 
  font-family: Avenir, Calibri, sans-serif; 
  margin: 0 6rem; 
  background: #111; 
  color: #fff; 
}
picture source, picture img { 
  width: 100%; height: auto; 
}
p { 
  width: 80%; 
  margin: 2rem auto; }
figcaption { text-align: center; }
@media all and (max-width: 500px) { p { width: 100%; } }
            
          
!
            
              // picturefill polyfill for non-supporting browsers
            
          
!
999px
Loading ..................

Console