SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Creating Scrollable Tables

Categories...
Client User Group
HTML, CSS and XML, Site Design
Language
No Script
Product
IE4
Task
HTML Enhancement, Scrollbar Control
Technology
HTML

Sponsored Links
Developer's Paradise : Inside Technique :
Creating Scrollable Tables
Submission by SiteExperts Staff

Go to the resource:
Creating Scrollable Tables

Add to Assistant

Short Description
Demonstrates a script-free technique for creating scrollable tables in Internet Explorer 4.0.

Long Description
Demonstrates a script-free technique for creating scrollable tables in Internet Explorer 4.0.

Author
Scott Isaacs
Submission URL
http://www.SiteExperts.com/tips/html/ts04/page1.asp
Submission Date
Feb 15,1998
 

Discussion and Rate this Resource
Overall Rating: 4

philcha on Jun 30, 2005 at 2:46:04 AMRating: 3

Works in Firefox, so presumably in any browser with decent CSS.

I prefer it to krestaurant's approach because CSS expressions are IE-only and don't work if JS is disabled.

I suggest using a CSS class for each column, e.g. tab01col01, so that it's really easy to tweak column widths.

krestaurant on Jun 29, 2005 at 6:35:30 PMRating: 3

I'd recommend the following instead of the described method:

<div style="overflow: auto; width:100px">
<table>
  <thead>
  <tr style=" position:relative;top:expression(this.offsetParent.scrollTop);background: #ffffff;">
    <th>title1</th>
    <th>title2</th>
  </tr>
  </thead>
  <tbody>
    <tr>
      <td>111111</td>
      <td>222222</td>
    </tr>
    <tr>
      <td>3<br>3<br>3<br>3<br>3<br>3</td>
      <td>444444</td>
    </tr>
  </tbody>
</table></div>

nitinj on Dec 9, 2003 at 3:08:31 AMNo Rating
I am having the same condition but my rows and columns increases using javascript .I want vertical scrollbar to exclude the heading but horizontal scrollbar should include heading
yhaber on Aug 3, 2003 at 11:30:35 PMRating: 4

good thinking, a nice and neat solution

DavidSilverlight on Jul 17, 2003 at 1:44:50 PMRating: 5

Hello all.  I created a snippet a while back with 4 versions of how to scroll tables with sticky table headers.  I forget where I got all of the methods from, but I think that a few came from SE.  Hopefully they will be of use to you.

http://www.topxml.com/code/default.asp?p=3&id=v20030523204554

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.