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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <html>
  <head>
    <meta charset="UTF-8"/>
    <title>My uber important document</title>
  </head>
  <body>
    <h2>The title of the thing</h2>

    <p>Jeeves—my man, you know—is really a most extraordinary chap. So capable. Honestly, I shouldn't know what to do without him. On broader lines he's like those chappies who sit peering sadly over the marble battlements at the Pennsylvania Station in the place marked "Inquiries." You know the Johnnies I mean. You go up to them and say: "When's the next train for Melonsquashville, Tennessee?" and they reply, without stopping to think, "Two-forty-three, track ten, change at San Francisco." And they're right every time. Well, Jeeves gives you just the same impression of omniscience.
</p>

    <h3>A table of the thing</h3>
    <table>
      <tr>
        <th>10</th>
        <th>20</th>
        <th>20</th>
      </tr>
      <tr>
        <td>10</td>
        <td>20</td>
        <td>20</td>
      </tr>
      <tr>
        <td>10</td>
        <td>30</td>
        <td>20</td>
      </tr>
      <tr>
        <td>20</td>
        <td>10</td>
        <td>20</td>
      </tr>
      <tr>
        <td>10</td>
        <td>20</td>
        <td>30</td>
      </tr>
      <tr>
        <td>10</td>
        <td>20</td>
        <td>20</td>
      </tr>
    </table>

    <h4>Some lists</h4>
    <ul>
      <li>"Jeeves," I said that evening. "I'm getting a check suit like that one of Mr. Byng's."</li>
      <li>"Injudicious, sir," he said firmly. "It will not become you."</li>
      <li>"What absolute rot! It's the soundest thing I've struck for years"</li>
      <li>"Unsuitable for you, sir."</li>
  </body>
</html>

              
            
!

CSS

              
                   body {
     margin: 2rem 3rem;
     font-size: calc(16px + 1vw);
     line-height: calc(1.1em + 0.5vw);
     font-family: Georgia;
     background-color: #fcfff4;
   }
              
            
!

JS

              
                
              
            
!
999px
We would have called your functions earlier, but we were in a bind.

Console