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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.



  <main id="work">
    <table class="data-list">
          <td>October 23</td>
          <td>Event A</td>
          <td>October 24</td>
          <td>Event B</td>



                body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  // Overall layout is CSS grid-based
  display: grid;
  // Simplified for pen:
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto;
  // Simplified for pen:
  grid-template-areas: "work work";
  background-color: #eee;
  color: #111;
  min-height: 100vh;
// This is the one document section where the issue is found.
main#work {
  grid-area: work;
  background-color: #eee;
  color: #111;
  padding: 0.5em; {
    display: grid;
    border-collapse: collapse;
    min-width: 100%;
    //row-gap: 0.25em;
    grid-auto-flow: row dense;
    // In the mobile friendly
    // CSS, the thead is removed.
    thead {
      display: none;
    // Take tbody and tr out of the
    // layout for grid purposes.
    tr {
      display: contents;

    tr td {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 0.25em 0.5em;
      font-size: 1.4em;
      background-color: #002244;
      color: #ffffff;

    tr td:nth-child(1),
    tr td:nth-child(2) {
      grid-column: 1/3;
    tr td:nth-child(2) {
      font-size: 0.9em;
      padding-left: 0.8em;

    tr td:nth-child(3) {
      grid-column: 3/4;

    tr td:nth-child(4) {
      grid-column: 4/5;
    tr td:nth-child(2) ~ td {
      grid-row: span 2;
      align-self: stretch;
    tr td:nth-child(n+2) {
      margin-bottom: 0.5rem;