Hi,
I have 2 tables, stacked one on top of the other, the layout is identical, but the data in the cells is different. The td widths are identical, same with margins, padding, borders, etc. But they just don't line up. And the mismatch is not constant, it depends on how many rows are in the bottom table.
This particular question is in regards to a 'scrolling table' kludge, where I have the top table as the fixed 'column header', and the bottom table as the rows. The scrolling works very nicely except for the slight misalignment. If I have just 2 or 3 rows--I'd call it passable--it looks like it drifts about 1 pixel per column (I have about 15 columns). But if there are, say 50 rows, then the drift is greater, but it starts at, maybe, the 6th column--and jumps 5 pixels there, then a few more at the 9th column, etc. It's not predictable.
But the question I'm asking is really broader--regardless of the purpose--scrolling or just simply having 2 tables--why would 2 identical tables be rendered differently? And how to I align them properly? Thanks,
--Jim
I have 2 tables, stacked one on top of the other, the layout is identical, but the data in the cells is different. The td widths are identical, same with margins, padding, borders, etc. But they just don't line up. And the mismatch is not constant, it depends on how many rows are in the bottom table.
This particular question is in regards to a 'scrolling table' kludge, where I have the top table as the fixed 'column header', and the bottom table as the rows. The scrolling works very nicely except for the slight misalignment. If I have just 2 or 3 rows--I'd call it passable--it looks like it drifts about 1 pixel per column (I have about 15 columns). But if there are, say 50 rows, then the drift is greater, but it starts at, maybe, the 6th column--and jumps 5 pixels there, then a few more at the 9th column, etc. It's not predictable.
But the question I'm asking is really broader--regardless of the purpose--scrolling or just simply having 2 tables--why would 2 identical tables be rendered differently? And how to I align them properly? Thanks,
--Jim