I need to create a function that creates a table with the exact width of another table. I can't hardcode in the widths, because the function is for multiple tables. The problem is, I can't figure out how to get the exact width of a table in both FF and IE. I try getting the width of the first table using offsetWidth or clientWidth. This works in firefox, but in IE it doesn't. The function-generated table is always much smaller.