473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Scrollable table widget with fixed header

Mel
is there such thing ? using CSS ?

thanks,
Mel
Jul 20 '05 #1
7 18724
On Mon, 5 Jul 2004 10:29:27 -0400, "Mel" <jm**@redolive.com> wrote:
is there such thing [as a scrollable table widget with a fixed header]? using CSS ?


You might enjoy some success with the following:

tbody {
max-height: 25em; /* Adjust to taste */
overflow: scroll;
}

then use thead, tfoot and tbody markup as normal.

Some browsers will probably do odd things, though.

Take care,
-Claire
Jul 20 '05 #2
Mel wrote:
is there such thing ? using CSS ?

thanks,
Mel


W3C's CSS Test-Suite example using overflow:auto on tbody:

http://www.w3.org/WAI/UA/TS/html401/...-OVERFLOW.html

To view as intended, use any Gecko based browser.
Opera and IE do not support overflow.

--
Gus

Jul 20 '05 #3
Gus Richter wrote:
Mel wrote:
is there such thing ? using CSS ?

thanks,
Mel


W3C's CSS Test-Suite example using overflow:auto on tbody:

http://www.w3.org/WAI/UA/TS/html401/...-OVERFLOW.html

To view as intended, use any Gecko based browser.
Opera and IE do not support overflow.


Opera doesn't support overflow in tables, it's fine elsewhere.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #4
Matt wrote:
Gus Richter wrote:

Mel wrote:

is there such thing ? using CSS ?

thanks,
Mel


W3C's CSS Test-Suite example using overflow:auto on tbody:

http://www.w3.org/WAI/UA/TS/html401/...-OVERFLOW.html

To view as intended, use any Gecko based browser.
Opera and IE do not support overflow.

Opera doesn't support overflow in tables, it's fine elsewhere.


I assume you're referring to IE6 (did not have opportunity to check
there) since IE5.5 does not support it.
In case of any interest, NC 4.x does not either, as well as not for tfoot.

--
Gus
Jul 20 '05 #5
Gus Richter wrote:
Mel wrote:
is there such thing ? using CSS ?

thanks,
Mel


W3C's CSS Test-Suite example using overflow:auto on tbody:

http://www.w3.org/WAI/UA/TS/html401/...-OVERFLOW.html
To view as intended, use any Gecko based browser.
Opera and IE do not support overflow.


this has the problem with horizontal scrolling that the head and foot do
not stay in sync with the body. Anyone have a suggestion ?

--
Bill Drescher
william {at} TechServSys {dot} com
Jul 20 '05 #6
bill drescher wrote:
this has the problem with horizontal scrolling that the head and foot
do not stay in sync with the body. Anyone have a suggestion ?


I've simulated an Excel spreadsheet using 4 iframes in a square. Top left
and top right are static column headers with fixed-width columns. Bottom
left is column 1 data, and bottom right is all the other column data with
the same fixed-width column sizes. When a bottom frame is scrolled up or
down, it scrolls the other bottom frame to the same position. When the
bottom right is scrolled left or right, the top right is scrolled to the
same position.

It acts the same as Excel having frozen rows and columns, and it works
beautifully under IE. I've not tested it with other browsers, since this was
for an IE-only intranet app.

It's kind of a pain (especially having 4 pages - one for each iframe) but it
was the best solution I could come up with that would work in IE, since IE
doesn't like overflow:auto on TD's.

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 20 '05 #7
I assume you're referring to IE6 (did not have opportunity to check there) since IE5.5 does not support it.
In case of any interest, NC 4.x does not either, as well as not for tfoot.
Gus
You still keep a copy of NC 4? Man this is so antique... I really HATE this piece of s**t.
Jul 4 '06 #8

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

Similar topics

1
by: Muralidhar | last post by:
Hi, I'm having a jsp page which is having a table and a div tag.The heading such as a radio button,Name , Age etc. are fixed.Only the data under it is scrolling. So i've set one table for header...
7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
2
by: Mel | last post by:
Scrollable table widget with fixed header is there such thing ? thanks, Mel
17
by: Matt Kruse | last post by:
I'm looking for the best JS/CSS solution to add functionality to tables. The only browser which needs to be supported is IE5.5+, but no activeX can be used. to be able to do: - Fixed header row...
25
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
1
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A...
2
by: binilprasad | last post by:
Hi Am working in project where i have to display a table with fixed header and the body is scrollable.I done this creating two tables and placing them inside a div. I set the top property of...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.