473,792 Members | 3,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Header columns not aligning with scrolling columns beneath.

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 it
if I could find an alternative to tables for this presentation as well.

I have googled my butt off and found a couple solutions that play nicely if
you always have scroll bars, but what if you don't? Do I just bite the
bullet and say always put the bars there (overflow:scrol l)?

Thanks for any advice or pointers.

Skip Hollowell.
Jul 20 '05 #1
7 3739
On Mon, 3 May 2004 12:12:26 -0400, Skip Hollowell
<skip_hollowell 'at'yahoo.com> wrote:
I have what is now a table with a header row and then obviously rows of
data
beneath.


URL please.
Jul 20 '05 #2
Neal wrote:
I have what is now a table with a header row and then obviously rows
of data beneath.

URL please.


Sorry this took a couple days.
http://132.235.1.2/~thollowe/tables.html

There is some extraneous stuff in the sheet, but I tried to pull out as
much as possible. This is only really required for IE 5.5 and up, and I
noticed that that due to my use of overflow-y that it doesn't even
scroll on non-ie browsers.

The columns not lining up is driving me crazy. When using percentages,
I can get close, sometimes. I even have trouble with fixed width
columns though. Any suggestions on these columns, widths, and even
possible CSS-only alternatives would be greatly appreciated.

Thanks
Skip Hollowell.
Jul 20 '05 #3
Thomas 'Skip' Hollowell wrote:
Neal wrote:
I have what is now a table with a header row and then obviously rows
of data beneath.


URL please.

Sorry this took a couple days.
http://132.235.1.2/~thollowe/tables.html


The only solution I have come up with is to make each table 98% width
(header table and data table), give corresponding columns the same
percentage widths, and live with it. I have also made the overflow-y
to be scoll instead of auto. Once the customer gets used to seeing the
scroll bar all of the time, I don't think it will be that big of a deal.

Alternatives?

Skip.
Jul 20 '05 #4
Thomas 'Skip' Hollowell wrote:
Neal wrote:
I have what is now a table with a header row and then obviously rows
of data beneath.

URL please.


http://132.235.1.2/~thollowe/tables.html

The columns not lining up is driving me crazy.


Your header row (th) and data rows (td) are in 2 different tables. They
should be in the same table.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #5
kchayka wrote:
Your header row (th) and data rows (td) are in 2 different tables. They
should be in the same table.

There are two schools of thought on this, separate vs same table. But
since I am using two separate div tags, one for the header portion and
one for the data portion, I gave each their own table. This keeps the
scroll bar off of the header, and keeps the obscene amount of table code
cleanly differnetiated.

If you have any pros or cons for each style, I would love to hear them.
At this point all I can say is it's all subjective on the best way
to lay this out, that is until I hear differently from someone, and I
hope I do.

Skip.
Jul 20 '05 #6
Thomas 'Skip' Hollowell wrote:
kchayka wrote:
Your header row (th) and data rows (td) are in 2 different tables. They
should be in the same table.

There are two schools of thought on this, separate vs same table.


The semantically correct way is with the headers in the same table as
the data they apply to. Your markup, as is, is illogical.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #7
On Thu, 6 May 2004, Thomas 'Skip' Hollowell wrote:
There are two schools of thought on this,
Presumably the "do it on sound engineering principles" school, and the
"bludgeon it until it looks right, and stuff the structure" school?
separate vs same table.


What I said :-{

Jul 20 '05 #8

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

Similar topics

2
35991
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 in the bottom table. This allows you to scroll trough lots of data with the header stationery, but of course then the column widths vary and the header table doesn't align properly with the data data. When I use a DIV around the data rows, its...
17
3702
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 - Data sorting (preferrably intelligently determining data type based on content) - If possible, locking the first column from scrolling
1
3846
by: tesc | last post by:
I'm sure this is pretty simple but I'm having a hard time with it. I have a report that has multiple columns and have to change some of the titles in the page header. As a result, the titles don't match up with the detail. I've used the all the formatting buttons such as align, size, etc. but it doesn't seem to work that well. I've also tried highlighting the page header and detail at the same time and formatting at the same time -...
8
2409
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long text boxes whichmakes the user to SCROLL a lot. I need only these 2 cloumns to be displayed in Edit mode. Is that possible & how? 2. Also, even when the data grid is not displayed in the edit mode, it
4
2224
by: Nehmo Sergheyev | last post by:
After reading about text line length http://psychology.wichita.edu/surl/usabilitynews/72/columns.htm , I'm thinking about experimenting with columns of text on a page. Is it possible on an HTML page to have 2 columns of text where the text of one column flows to the next on the visible part of the page, and scrolling treats the 2 columns like the bottom of the right column is connected to the top of the left column? Scrolling down...
0
1994
by: Carlos | last post by:
Hi all, I am trying to align the field sizes of each column in a gridview with columns headers given by a table built with xhtml. can this be done? I am trying to look for the property to adjust their sizes but I am not able to find it Thanks in advance,
4
15910
by: Greg Scharlemann | last post by:
I'm having difficulty getting the radio buttons to align vertically with one another and the header (1 2 3 4 5) at the top. Ideally each radio button will be directly below the one above it and the number 1 will be atop the first radio button starting at the left. Any thoughts on how to achieve this? <html> <head> <title></title> <style type="text/css">
2
1211
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello misters, In another post of the news, mister Manish Bafna, give me a reference: http://www.dotnet247.com/247reference/a.aspx?u=http://datawebcontrols.com/faqs/CustomizingAppearance/ScrollableDataGridWithFixedHeader.shtml But my trouble continues. I repeat the issue: I have an HTML table with a header. There are many rows, and I want that it appears scroll horizontal and vertical, and the header be fixed.
1
1863
by: mb | last post by:
I know this sounds strange, but I have set up a dataview with a fixed header, so the header does not scroll up with the rows of data. However, I need the header to scroll horizontally (not vertically) when the dataview does. Is it possible to do? Thx
0
9670
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
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
10430
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...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
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
9033
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...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2917
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.