I'm trying to get freeze panes to work on a table; like Excel.

Here's what I got just using CSS (scroll down to see the horizontal scrollbar):

I'm now thinking it's not possible just using CSS, think we need some JS...

I'm only looking for the solution to work in Firefox.

Here is a solution that works in IE:

any ideas?