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

              
                div.content
  label(for="btn_one") Tab 1
  input(type="radio" id="btn_one" name="nesto" checked="checked")
  span.tab1 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam nobis aliquid enim maxime unde perspiciatis, eos perferendis a, vitae culpa. Lorem ipsum dolor sit amet, consectetur adipisicing elit

  label(for="btd_two") Tab 2
  input(type="radio" id="btd_two" name="nesto")
  span.tab2 Libero atque? Culpa praesentium illum explicabo ipsum recusandae eligendi error, voluptatem dicta molestias modi tenetur quas sequi? Lorem ipsum dolor sit amet, consectetur adipisicing elitLibero atque? Culpa praesentium illum explicabo ipsum recusandae eligendi error, voluptatem dicta molestias modi tenetur quas sequi? Lorem ipsum dolor sit amet, consectetur adipisicing elit

  label(for="btd_tree") Tab 3
  input(type="radio" id="btd_tree" name="nesto")
  span.tab2 Nulla totam nobis accusamus corporis animi asperiores doloribus omnis quidem quam numquam repudiandae cum, ipsum aspernatur explicabo officia molestias nulla totam nobis accusamus corporis animi asperiores doloribus omnis

h3 Click tabs to change the content beneath.

              
            
!

CSS

              
                body,html
  margin: 0
  padding: 0
  font-family: 'Lato', sans-serif
  -webkit-font-smoothing: antialiased
  font-size: 12px
  background: #005AA7
  background: -webkit-linear-gradient(to left, #3679b3, #005AA7)
  background: linear-gradient(to left, #3679b3, #005AA7)
  width: 100vw
  height: 100vh
  position: relative

.content
  position: relative
  width: 700px
  margin: 50px auto
  padding-bottom: 55px
  min-height: 100px

  span
    display: none
    padding: 10px
    min-height: 30px
    border-top: 1px solid #eee
    color: #eee
    position: absolute

  label
    cursor: pointer
    display: inline-block
    padding: 10px
    background: #eee
    color: black

  input
    display: none
    &:checked
      &+ span
        display: block

h3
  width: calc(700px - 20px)
  margin: 0px auto
  color: #eee
  border-top: 1px solid #eee
  padding: 5px 10px 0
              
            
!

JS

              
                //Not today ...
              
            
!
999px

Console