Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                <table border="0" bgcolor="#eeeeee">
    <thead bgcolor="#000000" style="color: #fff">
      <tr>
        <th width="100"></th>
        <th width="81">Today</th>
        <th width="81">Sep 28</th>
        <th width="81">Oct 28</th>
        <th width="81">Nov 28</th>
        <th width="81">Dec 28</th>
        <th width="81">Jan 28</th>
        <th width="81">Feb 28</th>
        <th width="81">Mar 28</th>
        <th width="81">Apr 28</th>
        <th width="81">May 28</th>
        <th width="81">Jun 28</th>
      </tr>
    </thead>
    <tr>
      <th width="100">11 Payments</th>
      <td width="81">$27.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
      <td width="81">$18.00</td>
    </tr>

    <tr>
      <th width="100">9 Payments</th>
      <td>$32.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td>$20.00</td>
      <td></td>
      <td></td>
    </tr>

    <tr>
      <th width="100">6 Payments</th>
      <td>$40.00</td>
      <td>$22.00</td>
      <td>No Payment</td>
      <td>$22.00</td>
      <td>No Payment</td>
      <td>$22.00</td>
      <td>No Payment</td>
      <td>$22.00</td>
      <td>No Payment</td>
      <td>$18.00</td>
      <td></td>
    </tr>

    <tr>
      <th width="100">4 Payments</th>
      <td>$40.00</td>
      <td>No Payment</td>
      <td>$30.00</td>
      <td>No Payment</td>
      <td>$30.00</td>
      <td>No Payment</td>
      <td>$30.00</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>

    <tr>
      <th width="100">Paid in Full</th>
      <td colspan="11">$152.00 (saves up to $5.00 per month)</td>
    </tr>
  </table>
 
            
          
!
            
              /* Original */
table {
  font-size: .9em;
  font-family: Arial, sans-serif;
  border-collapse: collapse;
}
td, th {
  text-align: left;
  padding: 10px 5px;
  border: 1px solid #aaa;
}


/* RWD */

@media (max-width: 600px) {

/* make browsers include padding and border inside the width */
/* http://paulirish.com/2012/box-sizing-border-box-ftw/ */
/* http://html5please.com/#box-sizing */
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}


/* basic table styles and positioning */
table {
  width: 100%;
  float: left;
  border: 1px solid #aaa;
}

/* table cells get "display: block" and "float: left" */
th, td {
  display: block;
  float: left;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #aaa;
}


/* the far left column will be full-width and called out */
th {
  width: 100%;
  background-color: #000;
  color: #fff;
}


/* each inner table cell will fit four-across (25%) */
td {
  width: 25%;
  min-height: 3em;
  border-right: 1px solid #aaa;
}


/* hide the header row */
thead {
  display: none;
}

/* the last option only has one inner cell, make it 100% */
tr:nth-child(5) td {
  width: 100%;
}

/* because the header row is dynamic and we need to see it for each row,
   we're going to use generated content to fake it */
td:before {
  display: block;
  font-weight: bold;
  margin-bottom: .25em;
}


/* the second column (or the first inner table cell) is the first payment */
td:nth-child(2):before {
  content: "Today";
}


/* each additional inner cell is for the following month's payment */
td:nth-child(3):before {
  content: "Month 2";
}
td:nth-child(4):before {
  content: "Month 3";
}
td:nth-child(5):before {
  content: "Month 4";
}
td:nth-child(6):before {
  content: "Month 5";
}
td:nth-child(7):before {
  content: "Month 6";
}
td:nth-child(8):before {
  content: "Month 7";
}
td:nth-child(9):before {
  content: "Month 8";
}
td:nth-child(10):before {
  content: "Month 9";
}
td:nth-child(11):before {
  content: "Month 10";
}
td:nth-child(12):before {
  content: "Month 11";
}


/* hide the empty cells at the end of each row */
tr:nth-child(2) td:nth-child(11),
tr:nth-child(2) td:nth-child(12),
tr:nth-child(3) td:nth-child(12),
tr:nth-child(4) td:nth-child(9),
tr:nth-child(4) td:nth-child(10),
tr:nth-child(4) td:nth-child(11),
tr:nth-child(4) td:nth-child(12) {
  display: none;
}

}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console