Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Digital Experience wiki
  • All Wikis
  • All Forums
  • ANNOUNCEMENT: WIKI CHANGE TO READ-ONLY. LEARN MORE...
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
  • API Documentation
Search
Community Articles > WebSphere Portal > Developing > [Usability] Fixed Header Techniques for Large Tables
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Click to view profileAhmed M Farid
Contribution Summary:
  • Articles authored: 1
  • Articles edited: 1
  • Comments Posted: 0

Recent articles by this author

[Usability] Fixed Header Techniques for Large Tables

In this article, a set of techniques aimed at improving usability in viewing and accessing large tables (Several columns and data rows filling the screen) are to be explained. The techniques utilize javascript and CSS to create a fixed table header suiting visual and usability needs.
Community article[Usability] Fixed Header Techniques for Large Tables
Added by Ahmed M Farid | Edited by Ahmed M Farid on September 23, 2014 | Version 2
expanded Abstract
collapsed Abstract
In this article, a set of techniques aimed at improving usability in viewing and accessing large tables (Several columns and data rows filling the screen) are to be explained. The techniques utilize javascript and CSS to create a fixed table header suiting visual and usability needs.
Tags: Usability, Visuals, Tables, fixed, header, Javascript, CSS

Usability and visual appeal are necessary in user interfaces to facilitate and ease the usage process. Taking the following dummy table as an example:

ID First Name Middle Name Last Name Home Phone Office Phone Mobile Phone Position Department Office Salary Country of Origin Marital Status
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married
AM7309 Andrew Michael San-Diego 555-2873 567-1234 088-0102 Application Developer Innovation Services UK HQ 20,000$ United States of America Married

 

It shows that having several data rows can increase the page's vertical size and look visually unappealing and inadequate, especially for scenarios where for example footers and/or controls are located at the bottom. This thus urges the user scrolling down to reach such information and controls. The same can be said if more columns are needed, which will cause the same problem as data rows but on a horizontal perspective. The first technique is to reduce the visual size of the table, making it compact:

Compact Table. Code Source: http://jsfiddle.net/335ob1en/2/

 

With the help of CSS, we reduced the table size to be compact and scrollable in itself, without the need to scroll through the entire web page. However, if we scroll down inside the table, the header is no longer visible and thus users scroll back up to identify the exact column (Memory retention issue). This is evident in the phone number fields as it wouldn't be clear which number is home or office if the user does not remember:

Header Disappears

 

As a result, the header ought to be fixed, or in other words moves as the table is scrolled horizontally or vertically.

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (7)
collapsed Versions (7)
Version Comparison     
VersionDateChanged by              Summary of changes
7Oct 2, 2014, 2:52:05 AMAhmed M Farid  Minor change
6Oct 2, 2014, 2:39:11 AMAhmed M Farid  
5Oct 1, 2014, 10:18:13 AMAhmed M Farid  
4Oct 1, 2014, 10:14:40 AMAhmed M Farid  
3Sep 23, 2014, 10:32:57 AMAhmed M Farid  
This version (2)Sep 23, 2014, 10:27:48 AMAhmed M Farid  
1Sep 23, 2014, 9:51:54 AMAhmed M Farid  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkThe Social Lounge
  • Wiki Help
  • Forgot user name/password
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use