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.

              <section class="center">
  <h1>Monday-Friday Inbound Trains</h1>
  <div class="table__column--persistent-wrap">
    <div class="table-wrap">
      <table class="table" summary="This is a summary of your rad table contents.">
            <th scope="row">Station</th>
            <th scope="col">681</th>
            <th scope="col">601</th>
            <th scope="col">603</th>
            <th scope="col">605</th>
            <th scope="col">683</th>
            <th scope="col">607</th>
            <th scope="col">685</th>
            <th scope="col">687</th>
            <th scope="col">633</th>
            <th scope="col">635</th>
            <th scope="col">641</th>
            <th scope="col">609</th>
            <th scope="col">689</th>
            <th scope="col">643</th>
            <th scope="col">645</th>
            <th scope="row">Irvine</th>
            <th scope="row">Tustin</th>
            <th scope="row">Santa Ana</th>
            <th scope="row">Orange</th>
            <th scope="row">Anaheim <br/>ARTIC</th>
            <td>4:37am <small>*may run up to 5 minutes late</small></td>
              .table-wrap {
  overflow-x: auto;
  width: 100%;

.table-wrap .table {
  width: 100%;
  max-width: 100%;

.table tr th {
  white-space: nowrap;

.table-wrap {
  position: static;

.table__column--persistent-wrap {
  position: relative;
  border: 1px solid #f0f0f0;

.table__column--persistent {
  background-color: #ffffff;
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: auto;
  z-index: 4;

/* ------- Presentational Formatting --------- */
* {
  font-family: Arial, Helvetica, sans-serif;
h1 {
  text-align: center;
.center {
  margin: 0 auto;
  width: 100%;

.table {
  border-collapse: collapse;

.table tr {
  border-bottom: 1px solid #f0f0f0;

.table thead tr {
  border-bottom: 2px solid #f0f0f0;

.table tr td,
.table tr th {
  padding: .5em;
  border-right: 1px solid #f0f0f0;

.table th {
  text-align: left;
              function cloneTables(tables) {
  tables.each(function () {
    var table = $(this);
    var persistentColumn = table
    equalizeRowHeights(table, persistentColumn, false);

function equalizeRowHeights(fullTable, singleColumn, stopRecursion) {
      .each(function (i, elem) {
            $(this).height(fullTable.find('tr:eq(' + i + ')').height());
  if (!stopRecursion) {
    $(window).resize(function() {
      equalizeRowHeights(fullTable, singleColumn, true);

$(function() {
    cloneTables($('.table-wrap .table'));
Loading ..................