aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Lock or Freeze Columns in a HTML table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Lock or Freeze Columns in a HTML table" Watch "Lock or Freeze Columns in a HTML table" New topic
Author

Lock or Freeze Columns in a HTML table

Brian Quinn
Ranch Hand

Joined: Dec 23, 2003
Posts: 32
My company has developed an custom JSP tag that will display large lists in a scrollable HTML table using javascript and DWR. We have already shipped apps out with this table, but our newest set of apps will need to extend our tag. One of the new requirements is to lock the first column of the table as the table maybe much larger than can be displayed, so we need to have a horizontal scroll but keeping the first column visible at all times. I've been searching for a while and I haven't been able to find examples of this being done. Is it possible to lock the first column of an HTML table ? If so, anyone have some sample code or some examples we can look at ? BTW , it has to work in Firefox (the only example I've encountered is IE only solution)

Thanks,
Brian
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Brian,

maybe you can use 2 tables: the first table has only 1 column, the second table has all the other columns.

You can set the tables side-by-side with "display:inline" in your stylesheet.

Herman
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lock or Freeze Columns in a HTML table
 
Similar Threads
Tom
locking??
Cell renderer for different JComboBox's in same column?
Help me to have a sortable table in my html profile!
Windward Java Engine Review