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

              
                .checkout
  h1 Checkout
  form
    input type="text" placeholder="Card number"
    input type="text" placeholder="Name on card"
    .half
      input type="text" placeholder="MM/YY"
      input type="text" placeholder="CVC"
    button type="submit" Pay Now
              
            
!

CSS

              
                $dark-gray: #1C1D21
$light-gray: #31353D
$blue: #445878
$bright-blue: #92CDCF
$white: #EEEFF7

body
  background: $dark-gray
h1
  color: $white
  text-align: center
form
  width: 350px
  margin: 0 auto
  .half
    input
      width: 165px
      float: left
      &:first-child
        margin-right: 20px
  input, button
    box-sizing: border-box
    display: block
    float: left
    width: 100%
    padding: 20px
    font-size: 1.3em
    margin-bottom: 20px
    outline: none
    border: none
  input
    color: $dark-gray
  button
    color: $dark-gray
    background: $white
    font-weight: bold
    
    
              
            
!

JS

              
                
              
            
!
999px

Console