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.


                <div class="grid">
  <div class="pro-features">
    <h1>CodePen PRO Features</h1>
    <p>CodePen has many PRO features including these four!</p>
  <div class="feature-privacy">
    <p>You can make as many <a href="">Private</a> Pens, Private Posts, and Private Collections as you wish! Private <a href="">Projects</a> are only limited by how many total Projects your plan has.</p>
  <div class="feature-collab">
    <h2>Collab Mode</h2>
    <p><a href="">Collab Mode</a> allows more than one person to edit a Pen <em>at the same time</em>.</p>
  <div class="feature-assets">
    <h2>Asset Hosting</h2>
    <p>You'll be able to <a href="">upload files</a> directly to CodePen to use in anything  you build. Drag and drop to the Asset Manager and you'll get a URL to use. Edit your text assets at any time.</p>
  <div class="feature-debug">
    <h2>Debug View</h2>
    <p><a href="">Live View</a> is a full-page version of your Pens or Projects that updates as you update your code. Similarly, <a href="">Debug View</a> is a full page view of your code, but has no CodePen wrapping iframe or other influence, so it's great for testing. With PRO you don't need to log in to use it.</p>


                @import url(",400i,700");

.grid {
  display: grid;
  grid-gap: 1rem;
     200px  1fr  1fr;
    "pro    1    2"
    "pro    3    4";
  max-width: 1000px;
  margin: 0 auto;
.pro-features {
  grid-area: pro;

a {
  text-decoration-color: orange;
  text-decoration-style: double; 
  text-decoration-skip: none;
  color: inherit;
  font-weight: bold;
  display: inline-block;

.grid > div {
  background: #444;
  color: white;
  border-radius: 1rem;
  padding: 1rem;
  border-top: 1px solid #666;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);

h1, h2 {
  margin: 0;
  line-height: 1;
body {
  background: #222;
  margin: 0;
  padding: 1rem;
  line-height: 1.3;
  font-family: Roboto, sans-serif;