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.


                <div id="datepicker" class="calendar"></div>


  background #f7f6f3
  font-family open-sans

  position absolute
  width 280px
  left 50%
  top 50%
  margin -145px 0px 0px -140px
  background #fff
  border-radius 4px
  overflow hidden
  box-shadow 0 5px 10px rgba(0,0,0,0.2)

  height 50px
  line-height 50px
  color #f26a63
  margin-bottom 10px

.ui-datepicker-prev, .ui-datepicker-next
  width 20px
  height 20px
  text-indent 9999px
  border-radius 100%
  cursor pointer
  overflow hidden
  margin-top 12px

  float left
  margin-left 12px
    transform rotate(45deg)
    margin -43px 0px 0px 8px

  float right
  margin-right 12px
    transform rotate(-135deg)
    margin -43px 0px 0px 6px

.ui-datepicker-prev:after, .ui-datepicker-next:after
  content ''
  position absolute
  display block
  width 4px
  height 4px
  border-left 2px solid #b0aead
  border-bottom 2px solid #b0aead

  text-align center

  width 100%
  text-align center
          display block
          width 40px
          color #f26a63
          margin-bottom 5px
          font-size 13px
          text-transform uppercase

  display block
  text-decoration none
  color #f26a63
  line-height 40px
  font-size 12px
    background #4da036
    color #ffffff
    border-radius 20px
    color #4da036
    font-weight bold

  background #4da036
  color #ffffff
  border-radius 20px

    color #eee
    border 2px solid gray



                $(function() {
  $( "#datepicker" ).datepicker({ firstDay: 1});