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="main">
  <h1>Main Title</h1>
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Obcaecati dignissimos reprehenderit voluptas commodi laudantium sint, facere ipsa distinctio dicta quod, aut, explicabo sit animi eos. Quae, quis accusamus? Exercitationem, iusto!
  <button>Sign Up!</button>
<svg viewBox="0 0 500 200">
  <path d="M 0 30 C 150 100 280 0 500 20 L 500 0 L 0 0" fill="rgb(57, 27, 112)"></path>


                body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
.main {
  width: 100%;
  height: 250px;
  background-color: rgb(57, 27, 112);
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  padding: 0 20px;
  font-family: Arial;

.main h1 {
  font-size: 40px;

.main p {
  font-size: 18px;
  width: 80%;
  margin-top: -5px;

.main button {
  border: 2px solid #fff;
  color: #fff;
  font-size: 16px;
  padding: 8px 15px;
  width: 120px;
  margin-top: 10px;
  background-color: transparent;
  border-radius: 4px;