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>
  <h3>Select this paragraph in yellow marker</h3>
  <p class="yellow">Chase Sea Legs pink gangplank coxswain holystone crow's nest warp dance the hempen jig doubloon. No prey, no pay yardarm haul wind black jack cackle fruit grapple pink Privateer fire in the hole Jack Tar. Mutiny plunder no prey, no pay belaying pin pressgang topmast bounty knave fluke haul wind.</p>
</div>

<div>
  <h3>Select this paragraph in black/white</h3>
  <p class="black">Hempen halter wench avast Privateer Yellow Jack pirate provost spanker scurvy loot. Reef belaying pin careen aye pirate run a shot across the bow squiffy lugger me American Main. Topmast holystone come about topgallant jolly boat Nelsons folly bowsprit Blimey gibbet lugger.</p>
</div>

<div>
  <h3>Select this paragraph in shadow text</h3>
  <p class="shadow">Crow's nest tackle belaying pin pink Pirate Round hail-shot keelhaul wench lee wherry. Belay Barbary Coast ye marooned gabion gibbet hornswaggle yo-ho-ho bounty crow's nest. Sutler cutlass crack Jennys tea cup gangway shrouds Shiver me timbers Sink me pink maroon Pirate Round.</p>
</div>
              
            
!

CSS

              
                body {
  display: flex;
  justify-content: center;
  align-items: space-around;
  min-height: 100vh;
  font-family: Roboto,"Helvetica Neue",Arial,sans-serif;
  flex-direction: row;
  margin: 0;
  padding: 0;
}
div {
  padding: 25px;
}
p.yellow::selection {
  background: #FFFF00;
}
p.yellow::-moz-selection {
  background: #FFFF00;
}
p.black::selection {
  background: #000;
  color: #fff;
}
p.black::-moz-selection {
  background: #000;
  color: #fff;
}
p.shadow::selection {
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
p.shadow::-moz-selection {
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
              
            
!

JS

              
                
              
            
!
999px

Console