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

              
                <div class="button">Download</div>
              
            
!

CSS

              
                body
  margin 0
  padding 0
  text-align center
  font-family sans-serif
  background #d3d3d3
.button
  margin 10em auto 0
  display inline-block
  font-size 1.15em
  position relative
  text-align center
  padding 0.5em 1em
  background linear-gradient(45deg, #59ADEB, #40C3AF)
  color #fff
  box-shadow 0 0.2em 0.2em rgba(0, 0, 0, 0.25)
  border-radius 0.2em
  transition box-shadow 0.2s ease-in-out
  cursor pointer
  &:active
    background-color #ccc
    box-shadow 0 0 6px rgba(0, 121, 238, 0.6)
    transition box-shadow 0.1s ease-in-out
  &:after
    content "\0021e7"
    position absolute
    top -0.4em
    left 0
    right 0
    display block
    transform rotate(180deg)
    font-size 5em
    opacity 0
    text-shadow 0 0 1em rgba(0, 0, 0, 1)
    transition opacity 0.3s ease-in-out, font-size 0.3s ease-in-out, top 0.3s ease-in-out
    box-sizing border-box
    text-align center
    color #fff
  &:active:after
    font-size 1em
    opacity 1
    transition none
    top 0.3em
  &:hover
    box-shadow 0 0.1em 0.25em rgba(0,0,0,0.25)
  
              
            
!

JS

              
                
              
            
!
999px

Console