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


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.


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.


                <table class="table-simple mal">
  <caption class="text-heading tl mbm">Simple, responsive table with few columns</caption>
    <tr class="bb b--gray6 bw2">
      <th class="tr">Price</th>
      <td class="table-simple__cell" data-label="Shipment"><a href="#">987654321</a></td>
      <td class="table-simple__cell" data-label="Recipient">Acme Industries</td>
      <td class="table-simple__cell" data-label="Sent">14.07.2016 12.56</td>
      <td class="table-simple__cell tr" data-label="Price">NOK 198&nbsp;765,00</td>
      <td class="table-simple__cell" data-label="Shipment"><a href="#">123456789</a></td>
      <td class="table-simple__cell" data-label="Recipient">Burgers and Beauty and Sailor shoes as</td>
      <td class="table-simple__cell" data-label="Sent">26.06.2016 14.12</td>
      <td class="table-simple__cell tr" data-label="Price">NOK 666,00</td>
      <td class="table-simple__cell" data-label="Shipment"><a href="#">456789123</a></td>
      <td class="table-simple__cell" data-label="Recipient">Rent-A-Cat Co.</td>
      <td class="table-simple__cell" data-label="Sent">02.05.2016 11.38</td>
      <td class="table-simple__cell tr" data-label="Price">NOK 37,00</td>



                /* simple */

.table-simple {
  border-collapse: collapse;
  margin-bottom: 1rem;
  border: none;
  table-layout: fixed;

.table-simple th {
  vertical-align: bottom;
  padding-right: 2em;

.table-simple th:last-of-type {
  padding: 0;

.table-simple tbody {
  line-height: 1.2;

.table-simple tbody tr {
  border-bottom: 1px solid #ddd;

.table-simple__cell {
  vertical-align: top;
  padding: .5em 2em 0.3em 0;

.table-simple__cell:last-of-type {
padding: .5em 0 0.3em 0;

@media screen and (max-width: 40em) {
  .table-simple thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;

  .table-simple tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid #aaa;
  .table-simple td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
    padding: .4em 0 .2em;

  .table-simple td::before {
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    content: attr(data-label);
    float: left;
    font-weight: bold;
    margin-right: 1em;

  .table-simple td:last-of-type {
    padding: .4em 0 .4em 0;
    border-bottom: 0;