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

              
                .full-tbl
  .tbl-cell.v-mid
    .container
      .row.text-center
        .col-xs-12
          .btn-group
            button.btn.btn-info.dropdown-toggle(type='button', data-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
              | Action 
              span.caret
            ul.dropdown-menu
              li
                a(href='#') Option One
              li
                a(href='#') Option Two
              li
                a(href='#') Option Three
              
            
!

CSS

              
                html
body
  height 100%

.btn
  border-radius 3px
  border 0
  &:focus
  &:active:focus
    outline none
    box-shadow none  
    
.btn-group.open .dropdown-toggle
  box-shadow none
  
.dropdown-menu
  padding 0
  border-radius 3px
  border-color #eee
  overflow hidden
  box-shadow none
  >li>a
    padding 12px 18px
    &:hover
      background #f6f7f8
  
.full-tbl
  display table
  width 100%
  height 100%
  
.tbl-cell
  display table-cell
  
.v-mid
  vertical-align middle
              
            
!

JS

              
                
              
            
!
999px

Console