I coudl whip up an example that works in FF/IE with a non scrollable footer but that’s part of the technique with the scrolling table content…I don’t think you can get the footer to not move
iirc, IE7 was specifically the one who needed some space for the scrollbar… I remember trying without it and the other browsers seemed mostly ok, but IE7 would cut off the last column.
All you have done there is to create three tables and fixed the widths. There is no correlation between the header and footers and it will only work as long as the data is fixed to those specific widths.
The position:fixed you are using is having no effect as you can’t position part of a table.
However if that’s all you wanted then it will work.
There never was any problem in doing it in three tables but it makes nonsense of the semantics and doesn’t allow all the data to stretch accordingly.
Ryan gave you a 3 column version above with visible footer anyway.
i m sorry if i ignored what u said in posts. actually i m out of time as i have presntation tomorrow and so much to do but there is another problem now when i insert php tags which is calling dynamic data from database in td of tbody. each td get height of 200 which comes from inner class still problem
actually i m out of time as i have presntation tomorrow and so much to do but there is another problem now when i insert php tags which is calling dynamic data from database in td of tbody. each td get height of 200 which comes from inner class still problem
Remove the height from the wrapper as its not needed and is cutting the table short.
what i am looking for
1.headers to be fixed. that i did.
2. tbody to be scrollable (that also i did but it has huge gaps in b.w i think its taking it from inner class)
3.tfooter shld be fixed too as i m gonna show buttons. here is the example (bare with me the php)
having said that i tried same thing on with just dummy text and it worked fine but the programmer modified what i made before as in many pages its working fine but i can’t go and delete the php code in every page to make his html correct so i need made a new one. here is the updated code
tbody to be scrollable (that also i did but it has huge gaps in b.w i think its taking it from inner class)
I’m not seeing any large heights on the td content. Is this only happening in a certain browser or is there some other code that we need?
We would prefer to see actual code from view source (without php) so we can test locally. You need ot create a workking eaxample for us exhibiting the problem as only then can we really address the issue.
I do notice that your table structure is all wrong and you have the tbody tags in the wrong place. They should be outside the tr not inside it.
could this be the issue. i posted all code. there r no gaps with the static text but with dynamic data the gap is huge. (in all browsers)
Edit:i did fixed the tr but still gaps r there, i used firebug to find whats wrong. i found that in while loop. the inner div is repeating thus giving every td height of 200. so i found the problem how do i fix it?
If the .inner div is repeating then it sounds like your programmer has repeated the div and the table instead of repeating the tr elements only. That would be a programming fix not a css one.
As I said above if you posted the css from the browsers view source as requested we could have seen the extra tags and structure that was actually being output.
(http://www.sitepoint.com/forums/forumdisplay.php?f=34), and it's possible that this thread might need to be referenced in a new thread over there?
This while loop must be in PHP right? Since HTML and CSS can't do that.
Ah! so a programmer mate fixed the issue. i was making a table after while loop which made it whole repeat and it gave problem coz whole table structure was epeated whereas the tr shld have been repeated. but thnx though all of u.
Cheers,