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 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

              
                <div class="charter">
  <h2>Charter</h2>
  <p>Cozy lummox gives smart squid who asks for job pen.</p>
  <p><b>Joaquin Phoenix was gazed by MTV for luck.</b></p>
  <p><i>Quirky spud boys can jam after zapping five worthy Polysixes.</i></p>
  <p></p>
</div>

<div class="palatino">
  <h2>Palatino</h2>
  <p>Twelve ziggurats quickly jumped a finch box.</p>
  <p><b>Two driven jocks help fax my big quiz.</b></p>
  <p><i>Pack my box with five dozen liquor jugs.</i></p>
</div>

<div class="georgia">
  <h2>Georgia</h2>
  <p>Painful zombies quickly watch a jinxed graveyard.</p>
  <p><b>Jackdaws love my big sphinx of quartz.</b></p>
  <p><i>A waxy gent chuckled over my fab jazzy quips.</i></p>
 </div>

<div class="hoefler-text">
  <h2>Hoefler Text</h2>
  <p>Junk <span class="small-caps lowercase">MTV</span> quiz graced by fox whelps.</p>
  <p><b>A hot fowl amazed by quacked ravens jinxing a pub.</b></p>
  <p><i>Foxy diva Jennifer Lopez wasn’t baking my quiche. </i></p>
</div>

<div class="system">
  <h2>System font stack</h2>
  <p>The wizard quickly jinxed the gnomes before they vaporized.</p>
  <p><b>Waxy and quivering, jocks fumble the pizza.</b></p>
  <p><i>Sphinx of black quartz, judge my vow!</i></p>
</div>


              
            
!

CSS

              
                
:root {
/*  
 * If you’re trying to differentiate lots of similar looking fonts,
 * use a fallback of something distinctive that you’ll recognise as 
 * 'the wrong font'
 *
 */
  font-family: Papyrus, Comic Sans MS, Chalkboard, cursive;
  font-size: 2em;
  line-height: 1.5;
  color: hsl(245, 31%, 24%);
}

h2,
p {
  margin: 0;
}

div {
  width: 864px;
  padding: 24px;
}

div + div {
  margin-top: 2rem;
}

.small-caps {
  font-variant-caps: small-caps;
}

.lowercase {
  text-transform: lowercase;
}

.charter {
  font-family: Charter, Bitstream Charter, Papyrus, Comic Sans MS, Chalkboard, cursive;
}

.palatino {
  font-family: Palatino, Palatino Linotype, Palatino LT STD, Papyrus, Comic Sans MS, Chalkboard, cursive;
}

.georgia {
  font-family: Georgia, Papyrus, Comic Sans MS, Chalkboard, cursive;
}

.hoefler-text {
  font-family: Hoefler Text, Papyrus, Comic Sans MS, Chalkboard, cursive;
}

.system {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, cursive;
}

              
            
!

JS

              
                
              
            
!
999px

Console