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

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

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900')

body
  display flex
  align-items center
  justify-content center
  height 100vh
  background-color #303030 
  margin 0
  font-family: 'Source Sans Pro', sans-serif;
  &:after
    content ""
    opacity .7
    width 100%
    min-height 100vh
    background: #303033 url(http://subtlepatterns.com/patterns/broken_noise.png);
    position absolute
    z-index -1  
  
a
  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
  &:hover
    color #fff
    &:after
      width 120%
  &:after
    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;


              
            
!

JS

              
                
              
            
!
999px

Console