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="center-page">

  <div class="card">
    <div class="status"></div>
    <div class="status-type">
      <div class="title">Title</div>
      <div class="desc">We wire frunds within one hour of approval within business hours.</div>
    </div>
    <div class="clear"></div>
  </div>

</div>
              
            
!

CSS

              
                $gray: #F9FAFB
$white: #FFF
$black: #444
$blue: #6dc3f5
$drk-blue: #4a9ac8
$drk-grey: #dddddd
$green: #42df96


body
  color: $black
  background-color: $gray
  font-family: sans-serif
  
.center-page
  margin-top: 4rem
  
  
.card
  display: block
  margin: 0 auto
  height: 100px
  width: 100%
  max-width: 500px
  min-width: 300px
  background-color: white
  box-shadow: 0 0 14px 0 rgba(0,0,0,0.1)
  border-radius: 4px    
  
.card .status
  height: 100%
  width: 25%
  background-color: $green
  float: left
  margin-right: 10px
  border-top-left-radius: 4px
  border-bottom-left-radius: 4px
  
.card .status-type
  height: 100%
  width: 100%
  display: block
  position: relative
  top: 0
  left: 0  
  //border: 1px solid grey
  //border-radius: 4px
  
.card .status-type .title
  font-weight: bold
  padding-top: 10px
  font-size: 24px
  
.card .status-type .desc
  font-weight: light
  font-size: 14px
  padding-right: 10px
  color: $drk-grey
  
.card .clear
  clear: both
  float: none
              
            
!

JS

              
                
              
            
!
999px

Console