cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.


              @import compass

  font-family: 'Gudea', Helvetica, sans-serif
  height: 100%

  background-color: #111

  position: relative
  margin: 100px auto
  width: 180px
  height: 40px
  border: 3px solid #45f
  color: #45f
  font-size: 25px
  border-radius: 10px

  position: relative
  display: inline-block
  width: 50%
  height: 100%
  line-height: 40px
      border-radius: 5px 0 0 5px
      border-radius: 0 5px 5px 0
    position: absolute
    top: 0
    left: 0
    width: 100%
    height: 100%
    cursor: pointer
    font-style: italic
    text-align: center
    transition: transform 0.4s, color 0.4s, background-color 0.4s
    appearance: none
    width: 0
    height: 0
    opacity: 0
      outline: 0
      outline-offset: 0
    &:checked ~ label
      background-color: #45f
      color: #111
    &:active ~ label
      transform: scale(1.05)

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................