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 class="container text-center">
  <input type="text" id="datepicker" class="date" readonly="readonly" placeholder="Date">



  font-family: -apple-system, BlinkMacSystemFont, "myriad-pro", sans-serif
  font-weight: 400

  max-width: 120px
  padding: 5px 10px
  border: 1px solid #C8CCD4
  border-radius: 3px
  text-align: center
  appearance: none
  margin-top: 35%
    outline: none
    border-color: #5D9CF5

  width: 280px
  padding: 5px
  background: #2B323B
  border-radius: 4px
  box-shadow: 0 4px 40px -8px rgba(black,.2)
  opacity: 0
  @media screen and (max-width: 580px)
    top: auto !important
    right: 0 !important
    bottom: 0 !important
    left: 0 !important
    width: 100%
    border-radius: 0px
    opacity: 1

  height: 40px
  padding: 3px
  margin-bottom: 10px
    text-align: center
    line-height: 34px

  -webkit-appearance: none
  border: 0
  background: none
  outline: none
  font-size: 14px
  font-weight: 600
  color: white
  margin: 0 1px

.ui-datepicker-prev, .ui-datepicker-next
  position: relative
  display: inline-block
  width: 34px
  height: 34px
  cursor: pointer
  text-indent: 9999px
  overflow: hidden
  border-radius: 3px
    background: #444B56

  float: left
    transform: rotate(45deg)
    margin-left: 15px

  float: right
    transform: rotate(-135deg)
    margin-left: 13px

    content: ''
    position: absolute
    display: block
    margin-top: -10px
    width: 6px
    height: 6px
    border-left: 2px solid #C2C7D1
    border-bottom: 2px solid #C2C7D1
    pointer-events: none

  width: 100%
  text-align: center
        width: 40px
        padding-bottom: 6px
          display: block
          width: 100%
          padding: 0
          color: #8D9298
          font-size: 10px
          font-weight: 700
          text-transform: uppercase
          text-align: center
        padding-right: 3px
        padding-bottom: 3px
          padding-left: 3px

  display: block
  text-decoration: none
  color: white
  height: 34px
  line-height: 34px
  border-radius: 3px
  font-size: 12px
    background: #444B54
    text-decoration: none
    color: white

  color: #FED615
  color: white
  background: #5D9CF5

    color: rgba(white,.2)
    pointer-events: none


  firstDay: 1,
  showOtherMonths: true,
  changeMonth: true,
  changeYear: true,
  dateFormat: ""

$(".date").mousedown(function() {