View Full Version : Freeze pane in a html table within a div

04-04-2011, 12:46 PM
I came across of some code, but some only works in IE and not Firefox. It should be able to work in both browsers. Also in the page I need to use a <div style="height:100%; overflow:auto; "> before I want to create the table so that the header row is always visible. Please help

04-04-2011, 01:01 PM
Before you can set a % height on an element, all of its ancestors must also have a height set, otherwise the browser won't know what height to take a % of.