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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="analytics">
  <h4 class="analytics-title">Visitors Overview</h4>
  <div class="analytics-chart">
    <div class="analytics-colchart">
      <div class="analytics-colgroup">
        <div class="analytics-col"><div class="analytics-bar" style="height: 70%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 30%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 50%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 90%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 80%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 70%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 30%;"></div></div>
      </div>
      <div class="analytics-colgroup">
        <div class="analytics-col"><div class="analytics-bar" style="height: 40%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 30%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 20%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 15%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 10%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 25%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 50%;"></div></div>
      </div>
      <div class="analytics-colgroup">
        <div class="analytics-col"><div class="analytics-bar" style="height: 60%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 35%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 50%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 55%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 80%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 82%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 35%;"></div></div>
      </div>
      <div class="analytics-colgroup">
        <div class="analytics-col"><div class="analytics-bar" style="height: 20%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 30%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 50%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 90%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 80%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 70%;"></div></div>
        <div class="analytics-col"><div class="analytics-bar" style="height: 35%;"></div></div>
      </div>
    </div>
    <div class="analytics-legend">
      <p>28-3<span>/11</span></p>
      <p>4-10<span>/11</span></p>
      <p>11-17<span>/11</span></p>
      <p>18-24<span>/11</span></p>
    </div>
  </div>
  <div class="analytics-metrics">
    <p class="analytics-count">4,815</p>
    <p class="analytics-metric">Bounce rate <span>16%</span></p>
    <p class="analytics-metric">New visitors <span>23%</span></p>
  </div>
</div>
              
            
!

CSS

              
                /*
 * Copyright (c) 2012-2013 Thibaut Courouble
 * http://www.cssflow.com
 * Licensed under the MIT License
 *
 * Sass/SCSS source: https://goo.gl/IPYhT
 * PSD by Farzad Ban: https://goo.gl/N06gV
 */

body {
  font: 12px/20px "Lucida Grande", Tahoma, Verdana, sans-serif;
  color: #404040;
  background: -webkit-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 0 0, -webkit-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 7px 7px, -webkit-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 0 1px, -webkit-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 7px 8px;
  background: -moz-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 0 0, -moz-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 7px 7px, -moz-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 0 1px, -moz-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 7px 8px;
  background: -o-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 0 0, -o-radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 7px 7px, -o-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 0 1px, -o-radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 7px 8px;
  background: radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 0 0, radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 14%, transparent 15%) 7px 7px, radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 0 1px, radial-gradient(rgba(255, 255, 255, 0.1) 14%, transparent 16%) 7px 8px;
  background-color: #40454f;
  background-size: 16px 16px;
}

.analytics {
  margin: 39px auto;
  padding: 5px 6px;
  width: 490px;
  overflow: hidden;
  color: #3a414f;
  text-shadow: 0 1px rgba(255, 255, 255, 0.2);
  background: #717c8c;
  border-radius: 5px;
  background-image: -webkit-linear-gradient(top, #c3cbdd, #545b6a);
  background-image: -moz-linear-gradient(top, #c3cbdd, #545b6a);
  background-image: -o-linear-gradient(top, #c3cbdd, #545b6a);
  background-image: linear-gradient(to bottom, #c3cbdd, #545b6a);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 4px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.analytics-title {
  margin: 0 0 5px 3px;
  line-height: 14px;
  font-size: 11px;
  font-weight: bold;
}

.analytics-chart {
  float: left;
}

.analytics-colchart {
  padding: 2px 4px 0;
  height: 120px;
  overflow: hidden;
  background: #3e4350;
  border: 1px solid;
  border-color: #242934 #2c313c #2f3542;
  border-radius: 4px;
  background-image: -webkit-linear-gradient(top, #606a7e, #3e4350 50%, #4a5160 90%, #555d71);
  background-image: -moz-linear-gradient(top, #606a7e, #3e4350 50%, #4a5160 90%, #555d71);
  background-image: -o-linear-gradient(top, #606a7e, #3e4350 50%, #4a5160 90%, #555d71);
  background-image: linear-gradient(to bottom, #606a7e, #3e4350 50%, #4a5160 90%, #555d71);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 60px rgba(255, 255, 255, 0.02), 0 1px rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 60px rgba(255, 255, 255, 0.02), 0 1px rgba(255, 255, 255, 0.1);
}

.analytics-colgroup {
  float: left;
  margin: 0 7px;
  height: 100%;
}

.analytics-col {
  position: relative;
  float: left;
  margin: 0 2px;
  width: 4px;
  height: 100%;
}

.analytics-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0be4aa;
  -webkit-box-shadow: 0 0 4px rgba(11, 228, 170, 0.7);
  box-shadow: 0 0 4px rgba(11, 228, 170, 0.7);
}

.analytics-legend {
  margin-top: 3px;
  padding: 0 4px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  font-weight: bold;
  color: #adb7cf;
  text-align: center;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}

.analytics-legend > p {
  float: left;
  width: 25%;
}

.analytics-legend span {
  line-height: 13px;
  font-weight: normal;
  font-size: 9px;
  color: #a0a9bf;
}

.analytics-metrics {
  float: right;
  width: 195px;
  text-align: center;
}

.analytics-count {
  margin-bottom: 15px;
  line-height: 60px;
  font-size: 48px;
  color: #242831;
  font-weight: bold;
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
}

.analytics-metric {
  float: left;
  width: 50%;
  line-height: 15px;
  font-size: 11px;
  font-weight: bold;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.analytics-metric > span {
  display: block;
  margin-top: 6px;
  line-height: 24px;
  font-size: 20px;
  font-weight: normal;
  color: #cad6eb;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.2);
}

.analytics-metric + .analytics-metric {
  border-left: 1px solid #5e6876;
  border-left-color: rgba(40, 44, 52, 0.25);
  -webkit-box-shadow: inset 1px 0 rgba(255, 255, 255, 0.05), -1px 0 rgba(255, 255, 255, 0.05);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.05), -1px 0 rgba(255, 255, 255, 0.05);
}

              
            
!

JS

              
                
              
            
!
999px

Console