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.


                <div class="bg-image">
  <div class="text-container">
    <p>Just some text. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
    <p>Quod, repellendus at inventore, sapiente consequuntur aut sunt dolorem, doloribus ut quibusdam et temporibus iusto qui repudiandae, consectetur dolores omnis soluta autem.</p>


                .bg-image {
  padding: 20px;
  width: 400px;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  /* defines only the background image */
  background-image: url(;

  /* difines a gradient and a background image */
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1)),
                       url(; */
h1, p {
/*   color: white; */
/*   text-shadow: 1px 1px 3px #444; */
h1 {
/*   background-color: white; */
/*   display: inline-block; */
/*   line-height: 1; */
/*   padding: 12px; */
.text-container {
/*   background-color: white; */
  /* sets the color with alpha transparency */
/*   background-color: rgba(70, 130, 180, 0.8); */


                // This example is from my YouTube series, Decoded by Christina: