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.


  %input#ind-1{:type => "radio", :name => "gallery", :checked => ""}
    %label{:for => "ind-1"}
  %input#ind-2{:type => "radio", :name => "gallery"}
    %label{:for => "ind-2"}
  %input#ind-3{:type => "radio", :name => "gallery"}
    %label{:for => "ind-3"}
      %label{:for => "ind-1"}
        %img{:src => ""}
      %label{:for => "ind-2"}
        %img{:src => ""}
      %label{:for => "ind-3"}
        %img{:src => ""}

  Images from 
  %a{:href => ""}
    The Ultralinx


                @import compass

div, ul, li, img
  box-sizing: border-box

  background-color: #e8e8e8
  text-align: center
  width: 400px
  overflow: hidden
  border: 1px solid #aaa
  margin: 20px auto
  padding: 20px
  background-image: radial-gradient(#aaa 0%, #666 90%, #555 100%)
  width: 1200px
  text-align: left
  position: relative
  padding: 0
  margin: 0
  transition: left 0.5s
  display: inline
    width: 300px
    height: 200px
    padding: 0
    margin: 10px 0
    border: 1px solid #aaa
    cursor: pointer
  &:not(:first-child) img
    margin-left: 10px
  &:first-child img
    margin-left: 30px
.gallery input
  display: none
.gallery input + label
  background-color: #aaa
  height: 6px
  width: 24px
  display: inline-block
  border: 1px solid #444
  cursor: pointer
  transition: all 0.5s
    box-shadow: 0 0 3px 0 #555
.gallery input:checked + label
  background-color: #f1f1f1
.gallery #ind-1:checked ~ .gallery-images
  left: 0
.gallery #ind-2:checked ~ .gallery-images
  left: -310px
.gallery #ind-3:checked ~ .gallery-images
  left: -620px
  font-family: 'Calibri'
    color: #000


                /* NO JS */