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.

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

Console