File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes URGENT-Change cell width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URGENT-Change cell width " Watch "URGENT-Change cell width " New topic

URGENT-Change cell width

Vrunda Joshi
Ranch Hand

Joined: Dec 03, 2001
Posts: 104
i need to have a scrollable table(fixed header part and scrollable contents).
for this i have taken two seperate tables for header and data,i am creating this tables as the data changes,the cell size of the data table changes,but the header table cell size remains the same,so i need to change the header table cells size also as the header columns and the data table cells look mismathched.
is there any way out to change the cell size of header table cells dynamically?
i hope i have made myself clear
thanks in advance
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
I worked on this.....
look at this forum link
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
I think the simplest way for IE4+ and NS6+ would be to always create your data table with a header, but set style="visibility:hidden;" for a header row (I mean in TR tag) - it will produce one line of emty space, but it should not really affect anything (you can put this fake header at the bottom of the table).
At this case, when you change any fields, you always have correct sizes of all columns, that you could use for the real header piece
I agree. Here's the link:
subject: URGENT-Change cell width
It's not a secret anymore!