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

              
                <div class="container">
  <div class="block block-one"></div>
  <div class="block block-two"></div>
  <div class="block block-three"></div>
  <div class="block block-four"></div>
  <div class="block block-five"></div>
</div><!-- close .container -->
              
            
!

CSS

              
                
/*======================================
1.		BORDERS
======================================*/
.block {
  background-color: #FFF;
  height: 20px;
  margin-bottom: 20px;

  position: relative;
}
.block:before {
  bottom: 0;
  content: '';
  height: 10px;
  position: absolute;
  width: 100%;
}
.block-one:before {
  background-size: 60px 100%;
  background-color: #ccc69a;
  background-image: -webkit-linear-gradient(left, transparent 0%, transparent 25%, #89a193 25%, #89a193 50%, transparent 50%, transparent 75%, #cc8734 75%, #cc8734 100%);
  background-image: -moz-linear-gradient(left, transparent 0%, transparent 25%, #89a193 25%, #89a193 50%, transparent 50%, transparent 75%, #cc8734 75%, #cc8734 100%);
  background-image: -ms-linear-gradient(left, transparent 0%, transparent 25%, #89a193 25%, #89a193 50%, transparent 50%, transparent 75%, #cc8734 75%, #cc8734 100%);
  background-image: -o-linear-gradient(left, transparent 0%, transparent 25%, #89a193 25%, #89a193 50%, transparent 50%, transparent 75%, #cc8734 75%, #cc8734 100%);
  background-image: linear-gradient(left, transparent 0%, transparent 25%, #89a193 25%, #89a193 50%, transparent 50%, transparent 75%, #cc8734 75%, #cc8734 100%);
}
.block-two:before {
  background-size: 30px 100%;
  background-color: #e8e6d6;
  background-image: -webkit-linear-gradient(left, transparent 0%, transparent 25%, #655f6a 25%, #655f6a 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -moz-linear-gradient(left, transparent 0%, transparent 25%, #655f6a 25%, #655f6a 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -ms-linear-gradient(left, transparent 0%, transparent 25%, #655f6a 25%, #655f6a 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -o-linear-gradient(left, transparent 0%, transparent 25%, #655f6a 25%, #655f6a 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: linear-gradient(left, transparent 0%, transparent 25%, #655f6a 25%, #655f6a 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
}
.block-three:before {
  background-size: 10px 100%;
  background-color: #d7b2b5;
  background-image: -webkit-linear-gradient(left, transparent 0%, transparent 50%, #bb7761 50%, #bb7761 100%);
  background-image: -moz-linear-gradient(left, transparent 0%, transparent 50%, #bb7761 50%, #bb7761 100%);
  background-image: -ms-linear-gradient(left, transparent 0%, transparent 50%, #bb7761 50%, #bb7761 100%);
  background-image: -o-linear-gradient(left, transparent 0%, transparent 50%, #bb7761 50%, #bb7761 100%);
  background-image: linear-gradient(left, transparent 0%, transparent 50%, #bb7761 50%, #bb7761 100%);
}
.block-four:before {
  background-size: 120px 100%;
  background-color: #ccc69a;
  background-image: -webkit-linear-gradient(left, transparent 0%, transparent 25%, #737258 25%, #737258 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -moz-linear-gradient(left, transparent 0%, transparent 25%, #737258 25%, #737258 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -ms-linear-gradient(left, transparent 0%, transparent 25%, #737258 25%, #737258 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: -o-linear-gradient(left, transparent 0%, transparent 25%, #737258 25%, #737258 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
  background-image: linear-gradient(left, transparent 0%, transparent 25%, #737258 25%, #737258 50%, transparent 50%, transparent 75%, #bb7761 75%, #bb7761 100%);
}
.block-five:before {
  background-size: 120px 100%;
  background-color: #655f6a;
  background-image: -webkit-linear-gradient(left, transparent 0%, transparent 50%, #e8e6d6 50%, #e8e6d6 100%);
  background-image: -moz-linear-gradient(left, transparent 0%, transparent 50%, #e8e6d6 50%, #e8e6d6 100%);
  background-image: -ms-linear-gradient(left, transparent 0%, transparent 50%, #e8e6d6 50%, #e8e6d6 100%);
  background-image: -o-linear-gradient(left, transparent 0%, transparent 50%, #e8e6d6 50%, #e8e6d6 100%);
  background-image: linear-gradient(left, transparent 0%, transparent 50%, #e8e6d6 50%, #e8e6d6 100%);
}
/*======================================
20.		FOR DEMO PURPOSES ONLY
======================================*/
.clear:after {
  clear: both;
  content: '';
  display: table;
}
html {
  min-width: 320px;
}
body {
  padding: 20px 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console