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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                ul.box
  li.box-item 1
  li.box-item 2
  li.box-item 3
              
            
!

CSS

              
                $_item_margin: 10px
$_color_main: #fcc
$_color_bg: #fff
$_height: 40px

*
  margin: 0
  padding: 0
  box-sizing: border-box

body
  background-color: $_color_bg

.box
  display: block
  width: 100%
  margin: 0 auto
  padding: 50px 20px
  text-align: center
  overflow: hidden

.box-item
  display: block
  position: relative
  float: left
  width: calc(100% / 3 - 7px)
  height: $_height
  line-height: $_height
  margin-right: $_item_margin
  padding: 0 10px
  background-color: $_color_main
  border-radius: 4px
  &:before
    content: ''
    position: absolute
    right: -9px
    height: 0
    width: 0
    border-top: $_height/2 solid transparent
    border-bottom: $_height/2 solid transparent
    border-left: $_item_margin solid $_color_main
    border-radius: 4px
  &:after
    content: ''
    position: absolute
    left: -1px
    height: 0
    width: 0
    border-top: $_height/2 solid transparent
    border-bottom: $_height/2 solid transparent
    border-left: $_item_margin solid $_color_bg
    border-radius: 4px
  &:first-child
    &:after
      display: none
  &:last-child
    margin-right: 0
    &:before
      display: none

              
            
!

JS

              
                
              
            
!
999px

Console