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

              
                <h1>
  Of The Just Shaping of Letters By Albrech Dürer
  <small>Translated By R.T. Nichol From the Latin Text of the Edition of MDXXXV</small>
</h1>

<img src="https://www.gutenberg.org/files/37103/37103-h/images/i008.png" alt="">
<p>OW, since architects, painters & others at times are wont to set an inscription on lofty walls, it will make for the merit of the work that they form the letters correctly. Accordingly I am minded here to treat briefly of this. And first I will give rules for a Latin Alphabet, and then for one of our common Text: since it is of these two sorts of letters we customarily make use in such work; and first, for the Roman letters: Draw for each a square of uniform size, in which the letter is to be contained. But when you draw in it the heavier limb of the letter, make this of the width of a tenth part of the square, and the lighter a third as wide as the heavier: and follow this rule for all letters of the Alphabet.</p>

<cite><a href="https://www.gutenberg.org/files/37103/37103-h/37103-h.htm" rel="noopener" target="_blank">Project GutenBerg, Of the Shaping of Letters By Albrech Dürer</a></cite>
              
            
!

CSS

              
                /** Check out related blog post: https://andromedagalactic.com/blog/float-is-cooler-than-you-think/ **/

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,500;0,700;1,400;1,600&display=swap');

img { 
  float: left;
  clip-path: polygon(0% 0%, 34% 0%, 34% 30%, 100% 100%, 0% 100%);
  shape-outside: polygon(0% 0%, 34% 0%, 34% 30%, 100% 100%, 0% 100%);
  shape-margin: 2ch;
}



/** Theme **/
:root {
  font-family: 'Raleway', Helvetica, sans-serif;
  font-size: 12pt;
  font-weight: 300;
}
h1 { 
  text-align: center;
  font-size: 1.75em;
}
small { 
  display: block;
  font-size:.6180em;
  font-weight: 400;
  margin-top: 1ex;
}
p { line-height: 2; }


/** Layout **/
:root { 
  max-width: 72ch;
  margin: 2rem auto;
}
img {
  display: block;
  max-width: 27.49ch;
}
              
            
!

JS

              
                
              
            
!
999px

Console