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

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

              
                <div class="a"></div>
<div class="b"></div>
<div class="c"></div>
              
            
!

CSS

              
                @import "compass/css3";

body {
  text-align: center;
  background: #333;
}
div {
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 30px 15px;
  border: 5px solid #ddd;
  border-radius: 100px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2);
}
.a {
  background: #fff;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0) 50%, rgba(238,245,255,.7) 50%),
    linear-gradient(90deg, rgba(170,188,205,.7) 50%, rgba(0,0,0,0) 50%),
    linear-gradient(90deg, rgba(80,93,104,.7) 50%, rgba(0,0,0,0) 50%);
  background-size:
    53px 53px,
    37px 37px,
    29px 29px;
}
.b {
  background: #CEF0B7;
  background-image:
    linear-gradient(45deg, rgba(168,219,168,.7) 25%, transparent 25%, transparent 75%, rgba(168,219,168,.7) 75%, rgba(168,219,168,.7)), 
    linear-gradient(45deg, rgba(168,219,168,.7) 25%, transparent 25%, transparent 75%, rgba(168,219,168,.7) 75%, rgba(168,219,168,.7)),
    linear-gradient(45deg, #79BD9A 25%, transparent 25%, transparent 75%, #79BD9A 75%, #79BD9A), 
    linear-gradient(45deg, #79BD9A 25%, transparent 25%, transparent 75%, #79BD9A 75%, #79BD9A),
    linear-gradient(45deg, #3B8686 25%, transparent 25%, transparent 75%, #3B8686 75%, #3B8686), 
    linear-gradient(45deg, #3B8686 25%, transparent 25%, transparent 75%, #3B8686 75%, #3B8686)
  ;
  background-size: 79px 79px, 79px 79px, 61px 61px, 61px 61px, 53px 53px, 53px 53px;
  background-position: 0 0, 40px 40px, 0 0, 30px 30px, 0 0, 26px 26px;
}
.c {
  background: rgba(44,62,80,.7);
  background-image:
    radial-gradient(rgba(198,215,235,.3) 70%, transparent 70%),
    radial-gradient(rgba(198,215,235,.2) 70%, transparent 70%),
    radial-gradient(rgba(198,215,235,.2) 70%, transparent 70%),
    radial-gradient(rgba(198,215,235,.1) 70%, transparent 70%),
    radial-gradient(rgba(198,215,235,.1) 70%, transparent 70%)
  ;
  background-size:
    410px 410px,
    310px 310px,
    110px 110px,
    90px 90px,
    30px 30px
  ;
  background-position:
    96px 96px,
    70px 70px,
    53px 53px,
    37px 37px,
    29px 29px
  ;
}
              
            
!

JS

              
                
              
            
!
999px

Console