Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Last active December 15, 2015 13:28
Show Gist options
  • Save pamelafox/5267443 to your computer and use it in GitHub Desktop.
Save pamelafox/5267443 to your computer and use it in GitHub Desktop.
An accessible table
<style type="text/css">
.hidden-accessible {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
</style>
<table>
<caption>
<h4>Latest Forum Activity</h4>
</caption>
<thead>
<tr>
<th>
<span class="hidden-accessible">
Topic
</span>
</th>
<th>
<span class="hidden-accessible">
Votes
</span>
</th>
<th>
<span class="hidden-accessible">
Posts
</span>
</th>
<th>
<span class="hidden-accessible">
Views
</span>
</th>
</tr>
</thead>
<tbody>
<tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment