Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <section class="bg-wave"></section>
<section class="bg-diag-stripes"></section>
<section class="bg-carbon-fibre"></section>
<section class="bg-carbon"></section>
<section class="bg-weave"></section>
              
            
!

CSS

              
                
section {
  width:50%;
  float:left;
  height:300px;
}

.bg-weave {
	background:
linear-gradient(135deg, #708090 22px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px),
linear-gradient(225deg, #708090 22px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px)0 64px;
background-color:#708090;
background-size: 64px 128px;
}
.bg-carbon {
	background:
linear-gradient(27deg, rgb(34, 163, 223) 5px, transparent 5px) 0 5px,
linear-gradient(207deg, rgb(34, 163, 223) 5px, transparent 5px) 10px 0px,
linear-gradient(27deg, rgb(34, 163, 223) 5px, transparent 5px) 0px 10px,
linear-gradient(207deg, rgb(34, 163, 223) 5px, transparent 5px) 10px 5px,
linear-gradient(90deg, rgba(0,0,0,0.1) 10px, transparent 10px),
linear-gradient(rgb(34, 163, 223) 25%, rgb(34, 163, 223) 25%, rgb(34, 163, 223) 50%, transparent 50%, transparent 75%, rgb(34, 163, 223) 50%, rgb(34, 163, 223));
background-color:rgb(34, 163, 223);
background-size: 6px 6px;
}
.bg-carbon-fibre {
	background:
radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
background-color:#282828;
background-size:16px 16px;
}
.bg-blueprint {
	background-color:#269;
background-image: linear-gradient(white 2px, transparent 2px),
linear-gradient(90deg, white 2px, transparent 2px),
linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.bg-diag-stripes {
	background-color: transparent;
background-image: repeating-linear-gradient(45deg, rgb(34, 163, 223), rgb(34, 163, 223) 35px, rgba(34, 163, 223,0.9) 75px, rgba(34, 163, 223,0.8) 70px);
}

.bg-wave {
  background: linear-gradient(#ffffff 50%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, #FFFFFF 53%, rgba(255,255,255,0) 0) 0 0,
radial-gradient(circle closest-side, #FFFFFF 50%, rgba(255,255,255,0) 0) 55px 0 #48B;
background-size:110px 200px;
background-repeat:repeat-x;
}
              
            
!

JS

              
                
              
            
!
999px

Console