cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - 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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <h3 class="nomargin">Accessible horizontal scrolling table with fixed left column</h3>
<h4 class="fwl below24">Semantic markup + title attributes + aria roles & properties = screen reader-friendly awesomesauce!</h4>

<div class="st table-body few-rows selfclear relative">
  <div class="full-width inner">
    <table class="table-contents">
      <tr>
        <td class="row-head col-head row-select" role="columnheader" style="min-height: 37px"></td>
        <td class="row-head col-head" aria-label="Email Address" role="columnheader" style="line-height: 36px">Email Address</td>
        <td class="col-head" role="columnheader">First Name</td>
        <td class="col-head" role="columnheader">Last Name</td>
        <td class="col-head" role="columnheader">I'm a …</td>
        <td class="col-head" role="columnheader">Rating</td>
        <td class="col-head" role="columnheader">Address</td>
        <td class="col-head" role="columnheader">Phone</td>
        <td class="col-head" role="columnheader">Website</td>
        <td class="col-head" role="columnheader">Last Updated</td>
      </tr>
      <tr>
        <td class="row-head profile-select" title="Email Address: sterling@scdp.com"><input type="checkbox"></td>
        <td class="row-head">
          <div class="profile-view">
            <a title="View Profile" href="#">sterling@scdp.com</a>
          </div>
        </td>
        <td title="First Name">Roger</td>
        <td title="Last Name">Sterling</td>
        <td title="I’m a …">Partner</td>
        <td title="Member Rating">
          <ul aria-label="4-stars." role="note" class="star-rating">
            <li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon graystar"></span></li>
          </ul>
        </td>
        <td title="Address">SCDP HQ</td>
        <td title="Phone">111-222-3333</td>
        <td title="Website">scdp.com</td>
        <td title="Last Updated">Two Weeks Ago</td>
      </tr>
      <tr>
        <td class="row-head profile-select" title="Email Address: cooper@scdp.com"><input type="checkbox"></td>
        <td class="row-head">
          <div class="profile-view">
            <a title="View Profile" href="#">cooper@scdp.com</a>
          </div>
        </td>
        <td title="First Name">Bert</td>
        <td title="Last Name">Cooper</td>
        <td title="I’m a …">Partner</td>
        <td title="Member Rating">
          <ul aria-label="4-stars." role="note" class="star-rating">
            <li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon graystar"></span></li>
          </ul>
        </td>
        <td title="Address">SCDP HQ</td>
        <td title="Phone">111-222-3333</td>
        <td title="Website">scdp.com</td>
        <td title="Last Updated">Two Weeks Ago</td>
      </tr>
      <tr>
        <td class="row-head profile-select" title="Email Address: draper@scdp.com"><input type="checkbox"></td>
        <td class="row-head">
          <div class="profile-view">
            <a title="View Profile" href="#">draper@scdp.com</a>
          </div>
        </td>
        <td title="First Name">Don</td>
        <td title="Last Name">Draper</td>
        <td title="I’m a …">Partner</td>
        <td title="Member Rating">
          <ul aria-label="4-stars." role="note" class="star-rating">
            <li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon graystar"></span></li>
          </ul>
        </td>
        <td title="Address">SCDP HQ</td>
        <td title="Phone">111-222-3333</td>
        <td title="Website">scdp.com</td>
        <td title="Last Updated">Two Weeks Ago</td>
      </tr>
      <tr>
        <td class="row-head profile-select" title="Email Address: pryce@scdp.com"><input type="checkbox"></td>
        <td class="row-head">
          <div class="profile-view">
            <a title="View Profile" href="#">pryce@scdp.com</a>
          </div>
        </td>
        <td title="First Name">Lane</td>
        <td title="Last Name">Pryce</td>
        <td title="I’m a …">Partner</td>
        <td title="Member Rating">
          <ul aria-label="4-stars." role="note" class="star-rating">
            <li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon star"></span></li><li role="presentation"><span class="freddicon graystar"></span></li>
          </ul>
        </td>
        <td title="Address">SCDP HQ</td>
        <td title="Phone">111-222-3333</td>
        <td title="Website">scdp.com</td>
        <td title="Last Updated">Two Weeks Ago</td>
      </tr>
    </table>
  </div>
</div>

            
          
!
            
              // Styles specific to this demo
body {
  background-color: #fff;
  padding: 24px;
}

input {
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
}

.st {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  
  .col-head {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
  }
}

@media screen and (min-width: 75em) {
  .table-body { max-width: 65%; }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console