|
Actually I believe this capability is a function of CSS , not HTML/XHTML. You need to use the <tbody></tbody> tags along with the <thead></thead> and/or <tfoot></tfoot> tags. Basically you use the style of the <tbody> element to specify the size of the element and then also specify overflow:auto or overflow:scroll. This will give you a fixed header and/or footer with a scrollable body. Of course if your table is too wide for the window as well as being to long, you may need to use some javascript to keep the head and/or foot sections horizontally aligned. The problem with this is that while it works fine in mozilla, firefox, and probably the other non-IE browsers, it doesn't work in IE. What I have done to emulate this in IE is to copy the thead and tfoot sections into two new tables placed before and after the existing table, and then set the display style of the thead and tfoot sections of the body table to none. The code is kind of ugly but it works. Joe Lee >>> cozzi@xxxxxxxxx 10/26/2004 17:04:30 >>> The new version of XHTML, which isn't widely supported yet, has new capabilities for HTML Tables that give you subfile-like capabilities. That is the tables can have a scroll bar on the right side, similar to the textarea tag. As fare as the indentation, as Scott noted, check the leading blanks in the output HTML by using the VIEW | SOURCE option from the browser and see if the system embedded blanks into the leading end of your text. -Bob Cozzi -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Malchow, Grizzly Sent: Tuesday, October 26, 2004 12:41 PM To: web400@xxxxxxxxxxxx Subject: [WEB400] textarea I'm loading a textarea with information coming from a file (CGI and RPG). Does anyone know why the first line of the textarea is always intended? Also is there anything other than a textarea that could be used to function like a subfile? I'm guessing with HTML there isn't. _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400. _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.