Lock or Freeze Table Columns plus Non-Scroll Headers
(Internet Explorer CSS solution)

In Internet Explorer 5.0+ (Windows), this table has a non-scrolling header with the option to create a locked column for horizontal scrolling.

This solution is very lightweight and easy to maintain. No scripts are used to produce the effects, except one-line IE expressions applied through the style sheet.

The column locking is accomplished entirely by means of styling which can be applied by a static assignment of a CSS class to the cells of the locked column, or as in this example, by dynamically toggling the class upon user action. Waiting for explicit user action to lock the column has the effect of speeding the display of large tables.

Brett Merkey

Some aesthetic tweaks and a Drag and drop variation

Other experiments

NameMajorSexEnglishJapaneseCalculusGeometry
Student01Languagesmale80707580
Student02Mathematicsmale908810090
Student03Languagesfemale85958085
Student04Languagesmale6055100100
Student05Languagesfemale68809580
Student06Mathematicsmale1009910090
Student07Mathematicsmale85689090
Student08Languagesmale100909085
Student09Mathematicsmale80506575
Student10Languagesmale8510010090
Student11Languagesmale8685100100
Student12Mathematicsfemale100757085
Student13Languagesfemale1008010090
Student14Languagesfemale50455590
Student15Languagesmale953510090
Student16Languagesfemale100503070
Student17Languagesfemale801005565
Student18Mathematicsmale30495575
Student19Languagesmale68908870
Student20Mathematicsmale40454080
Student21Languagesmale5045100100
Student22Mathematicsmale1009910090
Student23Languagesfemale85808080
“I just wanted to offer a big thank you for your column locking solution. It looks like it's on its way to 'saving our project,' at least in my usability-conscious eyes.”
Jack Bellis Usability Institute

“It's true! Gee wizz, every time I think I know it all, bamm! Right between the eyes.”
Big John Position is Everything

http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

Posted by 퓨전마법사
,