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.


                %h1 Responsive Table

      %th Company
      %th Location
      %th{data: {label: 'Desc'}} Description
    %td Acme Company, LLC
    %td Denver, CO
    %td Lorem ipsum dolor sit amet consectetur adipisicing elit. Eos necessitatibus obcaecati quibusdam.
    %td Simple Corp
    %td Austin, TX
    %td Mollitia veritatis commodi deleniti provident quasi neque illum ipsa consequatur ullam facere, quidem minus nesciunt maxime architecto.
    %td ABC Generic Company
    %td Seattle, WA
    %td Nihil officia natus voluptas, at quasi impedit animi enim doloremque architecto.

%h2 Another Table

      %th{data: {label: '1'}} Label One
      %th{data: {label: '2'}} Label Two
      %th{data: {label: '3'}} Label Three
    %td A
    %td B
    %td C
  Blog post and instructions:
  %a{href: '', target: '_blank'}


// *Most* of this is necessary,
// but change the appearance to your liking
@media screen and (max-width: 767px)
    display: none
    display: block
    position: relative
    padding: 1.2em 0
      border-top: 1px solid #ccc
    display: table-row
      content: attr(data-label)
      display: table-cell
      font-weight: bold
      padding: 0.2em 0.6em 0.2em 0
      text-align: right
      content: ''
      position: absolute
      left: 0
      right: 0
      bottom: 0
      border-bottom: 1px solid #ccc
// None of this is required,
// but it makes the demo pretty
@import url(',700')
  padding: 5%
  font-family: 'Montserrat', sans-serif
  font-weight: 500
  line-height: 1.35
h1, h2
  font-size: 1.8em
  margin-bottom: 0.8em
  margin-bottom: 2em
  text-align: left
@media screen and (min-width: 768px)
    padding: 2.5em
  td, th
    padding: 0.4em 0.6em
    vertical-align: top
    border: 1px solid #ccc
    background: #e1e1e1
    font-weight: bold


    table = $(this);
    tableRow = table.find('tr');
      tdIndex = $(this).index();
      if ($(tableRow).find('th').eq(tdIndex).attr('data-label')) {
        thText = $(tableRow).find('th').eq(tdIndex).data('label');
      } else {
        thText = $(tableRow).find('th').eq(tdIndex).text();
      $(this).attr('data-label', thText + ':');