Scrollable body. Fixed headers problem. More than one row.

Discussion in 'CSS' started by facuman, Jul 27, 2007.

  1. #1
    Hello.
    I have to create an scrollable body with a left and top header. The left header is ok, but I am in a trouble with the top header. I'm using the very known pattern made up of divs, and touching the tables through css:
    headCell(i).style.width = bodyCell(i).offsetWidth

    All this is ok when the top header table has only one row. But when the top header table has more than one row, I can only resize the cells of the first row. Changes over the cells of the second row don't have effect. It's something like that:
    | Quarter 1 | Quarter 2 |
    | M1 | M2 | M3 .....................

    | 34 | 43 | 35 |

    I hope someone be able to help me.
    Thanks.
     
    facuman, Jul 27, 2007 IP