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 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

              
                <table class="type-layout">
  <tr>
    <td><div class="t1">Title 1</div></td>
    <td><div class="t1">Quisque non ante vitae urna dictum.</div></td>
  </tr>
  <tr>
    <td><div class="t2">Title 2</div></td>
    <td><div class="t2">Phasellus tempor ante urna, in fermentum nisl facilisis lobortis. Mauris id felis sit amet</div></td>
  </tr>
  <tr>
    <td><div class="t3">Title 3</div></td>
    <td><div class="t3">Proin tincidunt mi augue, id ullamcorper tortor pretium id. Quisque nisl massa, sollicitudin quis mattis non</div></td>
  </tr>
  <tr>
    <td><div class="lg">Large</div></td>
    <td><div class="lg">Quisque arcu purus, porta vitae nibh eu, vestibulum dictum ante. In hac habitasse platea dictumst. Phasellus interdum urna sed nunc bibendum, sit amet auctor lorem auctor. Cras luctus porttitor feugiat. Ut in ante malesuada urna condimentum volutpat.</div></td>
  </tr>
  <tr>
    <td><div class="reg">Regular</div></td>
    <td><div>Quisque arcu purus, porta vitae nibh eu, vestibulum dictum ante. In hac habitasse platea dictumst. Phasellus interdum urna sed nunc bibendum, sit amet auctor lorem auctor. Cras luctus porttitor feugiat. Ut in ante malesuada urna condimentum volutpat.</div></td>
  </tr>
  <tr>
    <td><div class="sm">small</div></td>
    <td><div class="sm">Vivamus ornare posuere velit et viverra. Proin aliquet malesuada lacus vitae lacinia. Aliquam quis feugiat risus. Duis dictum tempus eleifend. Cras diam sem, vulputate at turpis in, lobortis posuere mi. Aliquam pulvinar, mauris non consequat tincidunt, massa dolor mattis massa, eu tempor massa nibh eu magna.</div></td>
  </tr>
  <tr>
    <td><div class="micro">micro</div></td>
    <td><div class="micro">Vivamus ornare posuere velit et viverra. Proin aliquet malesuada lacus vitae lacinia. Aliquam quis feugiat risus. Duis dictum tempus eleifend. Cras diam sem, vulputate at turpis in, lobortis posuere mi. Aliquam pulvinar, mauris non consequat tincidunt, massa dolor mattis massa, eu tempor massa nibh eu magna.</div></td>
  </tr>
  <tr>
    <td><div class="extra-micro">extra micro</div></td>
    <td><div class="extra-micro">Sed quis quam pellentesque, venenatis velit sit amet, malesuada nibh. Cras congue, erat eget laoreet finibus, nisl augue tincidunt lectus, sed tempus purus sem sed leo. Praesent rhoncus quam nec risus elementum, vel accumsan mi volutpat.</div></td>
  </tr>
</table>
 
              
            
!

CSS

              
                html, input, .reg {
  font-family: "Airbnb Cereal", Circular,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #484848;
  font-weight: book;
  text-rendering: optimizelegibility;
}
.type-layout {
  max-width: 70em;
  padding: 0 4em;
  margin: 6em auto;
  td {
    vertical-align: top;
    padding: 1em 0;
    &:first-of-type {
      width: 200px;
    }
  }
}

.t1,.t2,.t3 {
  font-weight: bold;
}
.t1 {
  font-size: 36px;
  line-height: 48px;
}
.t2 {
  font-size: 32px;
  line-height: 38px;
}
.t3 {
  font-size: 24px;
  line-height: 30px;
}
.lg {
  font-size: 18px;
  line-height: 26px;
}
.sm {
  font-size: 13px;
  line-height: 18px;
}
.micro {
  font-size: 11px;
  line-height: 15px;
  font-weight: regular;
}
.extra-micro {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
}
              
            
!

JS

              
                
              
            
!
999px

Console