Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I make non-scrolling table headers?
Message
 
To
16/05/2002 12:03:20
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00657098
Message ID:
00657630
Views:
25
>Hi Tim,
>
>I've already attempted to do as you suggested. The problem is that I need to dynamically adjust the column widths because the content of the table columns changes (or can change). As you can see, I cannot fix the column width to a set value of pixels since it may then become inappropriate for the column's content (either too large or small).
>
>Thanks for the feedback.
>
>Mike.
>
>>>>Put the headers in a frame.
>>>
>>>Also, after the frames load, set the widths of the header columns equal the the widths of the detail columns.
>>
>>Looking at an example of when I did this, I used fixed pixel widths. So, I don't know if you will be able to dynamically change the column widths with DHTML. Just keep the column widths for the header table and detail table the same.

Why don't you try getting the maximium length of the data in each column from your dataset and convert the number of characters to pixels?
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform