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.


Auto Save

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.


  <strong>2022 update:</strong> <a href="" target="_top">check out the new version</a>

  Here is a little trick: You can see a <a href="" target="_top">link to my website</a> where the <code>background-image</code> underline is pretty much 50% the opacity of the text color. The trick doesn't work too well when zoomed in or on high-density diplays.


                a {
  color: inherit;
  text-decoration: none;
    linear-gradient(currentColor, transparent, currentColor, transparent, currentColor, transparent, currentColor)
    0 100% /* Bottom-aligned */
    100% 3px; /* 100% width, 3px height */
  box-decoration-break: clone;

/* Not so important styles below */
* { box-sizing: border-box; }

body {
  height: 100%;
  font-size: 16px;

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #e6e6e6;
  background-color: #161616;

p {
  margin: auto;
  padding: 2em;

  font-size: 1.5em;

a {
  padding: 0 2px;
  color: #00a39b;

a:focus {
  color: #ffd200;