cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              <table class="table">
    <th class="table__heading">Name</th>
    <th class="table__heading">Type</th>
    <th class="table__heading">Grade</th>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Gizmo</td>
    <td class="table__content" data-heading="Type">Robot</td>
    <td class="table__content" data-heading="Grade">A+</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Sherlock Holmes</td>
    <td class="table__content" data-heading="Type">Human</td>
    <td class="table__content" data-heading="Grade">B-</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Merlin</td>
    <td class="table__content" data-heading="Type">Wizard</td>
    <td class="table__content" data-heading="Grade">C</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Richard Nixon</td>
    <td class="table__content" data-heading="Type">Cyborg</td>
    <td class="table__content" data-heading="Grade">B-</td>
              @use cssnext;

:root {
  --family1: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --family2: 'Avenir Next', 'Segoe UI', 'Lucida Grande', sans-serif;
  --yellow: #FFC842;
  --break-sm: 32rem;
  --break-md: 48rem;

@custom-media --only-small (width <= 32rem);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

body {
  font-weight: 400;
  font-family: var(--family1);

td, th { padding: .5rem; }
th { text-align: left; font-weight: 300; font-size: 1.25rem; }
td { font-family: var(--family2); }

.table {
  width: 100%;
  padding: 1rem;

.table__heading { border-bottom: 2px solid var(--yellow); }

@media (--only-small) {
  .table__heading { display: none; }
  .table__content {
    display: block;
    padding: .5rem 0;
  .table__row {
    margin: .25rem 1rem;
    padding: .5rem 0;
    display: block;
    border-bottom: 2px solid var(--yellow);

  .table__content:before {
    content: attr(data-heading);
    display: inline-block;
    width: 5rem;
    margin-right: .5rem;
    color: #999;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--family1);
    text-transform: uppercase;
    letter-spacing: 2px;
Loading ..................