cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................