Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource


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


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.


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.


                <p>Here's a <span class="the-trick">cool</span> trick for replacing text with an icon font icon inline. Copying and pasting still works normally. It might be useful if you want to use a wordmark as an icon among other things. (Highlight the first sentece and copy/paste.)</p>


                @import url(;

body {
  background: #1e8cbe;
p {
  max-width: 600px;
  margin: 50px auto;
  color: #fff;
  font: 21px/1.4em Helvetica, Arial, sans-serif;
.the-trick {
  // Retains width/height of original word
  display: inline-block;
  position: relative;
  padding: 4px 16px;
  right: 9999px;

  &:after {
    content: "\1f680";
    position: absolute;
    top: 2px;
    right: -9999px;
    width: 100%;
    text-align: center;
    height: 100%;
    color: #fff;
    font-size: 50px;
    line-height: 30.8px;
    font-family: 'entypo', sans-serif;