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 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

Packages

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.

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.

HTML

              
                <p class="tiger">Tiger</p>
<p class="zebra">Zebra</p>
<p class="bee">Bee</p>
<p class="rainbow">Rainbow</p>
<p class="gradient">Gradient</p>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Roboto, sans-serif;
  font-size: 9em;
  font-weight: 700;
  text-align: center;
  background-color: #ffc0cb;
}

p {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    text-shadow: 10px 9px 1px rgba(255,0,0,0.1);
}

.tiger {
  background-image: repeating-linear-gradient(
    -45deg,
    #000 2px,
    #000 5px,
    #f16e22 5px,
    #f15c22 9px
  );
}

.zebra {
  background-image: repeating-linear-gradient(
    -45deg,
    #fff 2px,
    #fff 5px,
    #000 5px,
    #000 9px
  );
}

.bee {
  background-image: repeating-linear-gradient(
    -45deg,
    #000 2px,
    #000 5px,
    #ffff00 5px,
    #ffff00 9px
  );
}

.rainbow {
  background-image: repeating-linear-gradient(
    -45deg,
    #ff0000 2px,
    #f16e22 3px,
    #ffff00 4px,
    #00ff00 5px,
    #0000ff 6px,
    #8a2be2 7px
  );
}

.gradient {
  background-image: linear-gradient(to right, #ff0000, #f16e22, #ffff00);
}

              
            
!

JS

              
                
              
            
!
999px

Console