I\'ve written some jQuery code that reads the width of the columns in a table and applies them to another table.
On my page, there is a TABLE like this:
I faced the same problem trying to detect the width of the body and load specific scripts and I worked around it this way. May help you as well.
$('body,html').css({'overflow':'hidden'});
var width = $('body').width();
$('body,html').css({'overflow':''});
this gives a consistent value in all major browsers
`