473,804 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling tables ?

What I want to be able to do is to present a table (with 3 varying
width columns) as a scrolling list of items.
I can do this by placing the table within a div which has overflow-y
set to scroll - however when the table is scrolled the table header
row scrolls out of view.

Is there a way to format this so that the header is outside of the
scrollable area but still aligns with the (varying width) columns
which contain the table data ?
If each column was a fixed width it would be easy - but I don't see
any way to take varying width columns into account.
Jul 20 '05 #1
3 4584
SmartBloke wrote:
What I want to be able to do is to present a table (with 3 varying
width columns) as a scrolling list of items.


<table>
....
<thead>
.... header row ...
</thead>
<tbody>
.... data rows ...
</tbody>
</table>

apply the overflow to tbody.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #2
DU
Johannes Koch wrote:
SmartBloke wrote:
What I want to be able to do is to present a table (with 3 varying
width columns) as a scrolling list of items.

<table>
...
<thead>
... header row ...
</thead>
<tbody>
... data rows ...
</tbody>
</table>

apply the overflow to tbody.


What you wrote will work only for Mozilla-based (1.2+) browsers.

Cross-browser scrolling tbody
http://www10.brinkster.com/doctorunc...lingTBody.html

DU
Jul 20 '05 #3
DU <dr*******@hotW IPETHISmail.com > wrote in message >
Cross-browser scrolling tbody
http://www10.brinkster.com/doctorunc...lingTBody.html


Thanks for your reply, this looked good at first glance, however,
looking deeper it does not allow for variable width columns -
stripping the 'col widths' and the 'table-layout: fixed' from your
code breaks the alignment of the table header and body.

I am generating a table dynamically from a php script - I have no idea
of what the content of the table is going to be so I cannot give
columns widths either relative or absolute - the table must reflow to
accomodate the headings/data.

Possible ?
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3740
by: Skip Hollowell | last post by:
I have what is now a table with a header row and then obviously rows of data beneath. If the data is more than 50 or 6 rows (100px) then the rows will scroll using overflow:auto. This all works great, but I have alignment issues with the columns. I can get things to line up in either case (with scrolling or without scrolling) but not in both. Currently, I am using Tables to align everything and giving each row a % width. I would love...
4
2882
by: Roedy Green | last post by:
I noticed that the scrolling tables at http://www.safesearching.com/billmaher/print/transcripts.shtml Work fine in Opera, Firefox, Mozilla, Netscape and IE in the latest versions. I looks as though their tactic uses JavaScript. -- Canadian Mind Products, Roedy Green. http://mindprod.com Again taking new Java programming contracts.
6
1551
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about the display of the table. the top left corner in the table grid is hidden from being displayed. I have tried to figure out where it is being hidden but can't find the code to allow it to be shown as part of the left frozen column. can anyone...
12
1808
by: Jon Paal | last post by:
trying to use this script for scrolling tables found at this link: http://www.litotes.demon.co.uk/example_scripts/tableScroll.html The top left corner in the table grid is hidden from being displayed. I see: -- the code is creating DIV's and -- overrides are hidden
17
1523
by: Jon Paal | last post by:
trying to use this script for scrolling tables found at this link: http://www.litotes.demon.co.uk/example_scripts/tableScroll.html The top left corner in the table grid is hidden from being displayed. I see: -- the code is creating DIV's and -- overrides are hidden
1
2367
by: asearle | last post by:
Hi everyone, I have some simple but very long reports that I would like to present in tabular format. To make this more comfortable for the reader I would like the headers to remain static at the top of the tables and just the content to scroll. I got this working with 'DIV' commands but found that, as various users re-sized their browsers, the column headers would go out of line. I tried fixing this with column width declarations but...
1
2642
by: jonceramic | last post by:
Hi All, I've noticed that in a lot of my forms and tables, when I'm on continuous view, I can't scroll when the focus is in a field or on a control. Meaning, if I have a list, and start scrolling, it always jumps back to the focus the second the scrolling is done. While I like this in some cases, it can get to be annoying. I try to
8
3373
by: rmurgia | last post by:
Has anyone noticed that scrolling through objects i.e. forms, reports, tables, etc with Access 2007 is not as easy as Access 2003? I have a database with a large number of objects. When scrolling through with the down arrow or page down, it seems that items get caught in the buffer making scrolling through large amounts of objects cumbersome. After taking my finger off the key, the cursor continues to move. If I push down and let go quickly,...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.