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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <article>
  <blockquote>
    <p>Here the drawing would go on till the sequence finished in the film, and that would be the end of the drawing: an understanding of the world as process rather than as fact. And somehow this technique and this medium allow that to come forward. There isn’t a contradiction between what the medium itself seems to suggest and things that I’m actually interested in.<cite class="small author">William Kentridge</cite></p>
  </blockquote>
</article>
              
            
!

CSS

              
                body {
  font: 100%/1.5 "Lucida Grande", Corbel, Verdana, Sans-Serif;
  min-height: 100%;
  margin: 0;
  background-color: #fff;
  color: #111;
}
.wf-lato-i4-active body {
  font-family: Lato, sans-serif; 
}
article {
  max-width: 60em;
  margin: 0 auto;
  background-color: #fff;
}
p {
  padding: .5em 0;
}
blockquote {
  display: block;
  padding: 2em;
  position: relative;
  max-width: 40rem;
  margin-top: 1.5rem;
  // background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 400 300'><polygon opacity='0.15' fill='rgb(32,39,70)' points='160,15 100,130 170,130 170,300 0,300 0,140 80,15'/><polygon opacity='0.15' fill='rgb(32,39,70)' points='240,285 300,170 230,170 230,0 400,0 400,160 320,285'/></svg>");
// edit: verticals get 6% slanted verticals
// background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 400 300'><polygon opacity='0.15' fill='rgb(32,39,70)' points='184,40 108,150 181,150 166,300 0,300 16,139 103,40'/><polygon opacity='0.15' fill='rgb(32,39,70)' points='216,260 292,150 219,150 234,0 400,0 384,161 297,260'/></svg>");
// edit: verticals get 6% slanted verticals, except the inner verticals; more balanced
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 400 300'><polygon opacity='0.15' fill='rgb(32,39,70)' points='184,40 108,150 166,150 166,300 0,300 16,139 103,40'/><polygon opacity='0.15' fill='rgb(32,39,70)' points='216,260 292,150 234,150 234,0 400,0 384,161 297,260'/></svg>");
    background-repeat: no-repeat;

  @media (min-width: 960px) {
    margin-left: 25%;
    font-size: 32px;
    font-size: 2rem;
  }

}
blockquote p {
  font-style: italic;
  max-width: 24em;
}
.small {
  font-size: .6em;
}
.author {
  position: relative;
  top: 2.25em;
  float: right;
} 
              
            
!

JS

              
                WebFontConfig = {
  google: {
    families: ['Lato:400,400italic:latin']
  }
};
(function() {
  var wf = document.createElement('script');
  wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
    '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
  wf.type = 'text/javascript';
  wf.async = 'true';
  var s = document.getElementsByTagName('script')[0];
  s.parentNode.insertBefore(wf, s);
})();
              
            
!
999px

Console