473,395 Members | 1,622 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,395 software developers and data experts.

Scrolling table different behaviour in 3 browsers

170 100+
I'm trying to make a table with fixed header but scrolling body. The page is here

Here's the summary of what happens in the browsers:

FF3: Works almost perfectly. Scrolls as desired. Annoying unneeded bottom scrollbar is the only (minor) problem.

Safari 3 on PC: Displays table correctly but no scroll.

IE7: Really weird. Height of table rows is about 10-15 times what it should be, and of course, no scroll at all.

I haven't tested in IE6.

Is anyone able to view the link in either IE7 or Safari and give me some ideas why it's doing this.

Thanks
Oct 25 '08 #1
3 2438
David Laakso
397 Expert 256MB
This is a simple suggestion-- I have not tried this. Make two tables. The top table is stationary. Enclose the bottom table in a division. Assign the height to the division (instead of tbody), something like this:
Expand|Select|Wrap|Line Numbers
  1. #anchor {min-height:340px;overflow-y: scroll;}
  2. * html #anchor {height:340px;}
  3.  
Tweak either the the top or bottom table -- or both -- so the vertical rules(borders) line up. Safari will scroll vertically. Confirm Opera is on board. IE/6 and IE/7 should go along for the ride without the current height issue. Whether IE/6 will need to be hacked for width remains to be seen.
Oct 25 '08 #2
beary
170 100+
Thanks David. I have seen this method and may try to use it as a last resort. But to me it seems to be "cheating" a little. Also, I know it's something to do with my code, because on this other page (not mine) , scrolling works fine on all those browsers. I wonder if it's something to do with mine being in a table. And I'm really curious to know why IE7 goes so weird with the cell heights. Still hoping for help...

This is a simple suggestion-- I have not tried this. Make two tables. The top table is stationary. Enclose the bottom table in a division. Assign the height to the division (instead of tbody), something like this:
Expand|Select|Wrap|Line Numbers
  1. #anchor {min-height:340px;overflow-y: scroll;}
  2. * html #anchor {height:340px;}
  3.  
Tweak either the the top or bottom table -- or both -- so the vertical rules(borders) line up. Safari will scroll vertically. Confirm Opera is on board. IE/6 and IE/7 should go along for the ride without the current height issue. Whether IE/6 will need to be hacked for width remains to be seen.
Oct 25 '08 #3
David Laakso
397 Expert 256MB
You'll likely have a lot more luck all around, including control of cell height, if you structure the table using the CSS Table Model.
Oct 25 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: johkar | last post by:
I only have IE 6 and dial-up. Can you help me determine which browsers support this code? Thanks, John <html> <head> <title>Fixed Table Headers</title> <script language="JavaScript"...
2
by: Tony T | last post by:
I'm not a regular here - strictly an amateur web developer - but I've got so frustrated I'd really appreciate any help anyone can give. I'm working on a PC platform with Win ME. I'm developing a...
2
by: Big Slim | last post by:
I'm trying to use the OVERFLOW property to make only part of a table scrollable, but to no avail. You can split a table into two tables, with your column headers in the top table and your data...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
8
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
14
by: Dave | last post by:
My web site is not particularly theme-based, but it contains an Art Gallery I'd like to display in a different perspective. I would like to horizontally scroll it, rather than vertically - as if...
28
by: Giggle Girl | last post by:
Can someone show me how to insert a row at any given row index of an already created table? It only has to work in IE6 (used on intranet at work). Specifically, if a table is 20 rows in total...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
2
by: seajays | last post by:
Hi - I've managed to get this site working in Firefox and IE6, without any horizontal scrolling, but for some reason IE7 is insisting on horizontal scrolling by quite a wide margin. Does anyone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.