Pen Settings



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


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


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.


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.


                <a href="/">Gradient button</a>


                @import url(',400,600,700,900')

  display flex
  align-items center
  justify-content center
  height 100vh
  background-color #303030 
  margin 0
  font-family: 'Source Sans Pro', sans-serif;
    content ""
    opacity .7
    width 100%
    min-height 100vh
    background: #303033 url(;
    position absolute
    z-index -1  
  padding 1.5em 4em
  position relative
  z-index 2
  display inline-block
  text-decoration none
  color rgba(#fff,.7)
  box-sizing border-box
  text-align center
  text-transform uppercase
  background-color transparent
  font-size 1.1em
  transition: 0.3s;
  border: 4px solid green  
  border-image-source: linear-gradient(to right, #016062 0%, #4a5e8c 44%, #4a5e8c 49%, #4a5e8c 57%, #744a9e 100%);
  border-image-slice: 4
  overflow hidden
    color #fff
      width 120%
    content ""
    position: absolute;
    transition: 0.3s;
    content: '';
    width: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(to right, #016062 0%, #4a5e8c 44%, #4a5e8c 49%, #4a5e8c 57%, #744a9e 100%);
    height: 120%;
    left: -10%;
    transform: skewX(15deg);
    z-index: -1;