in questo momento non ho tempo di cercare x te, però ho qui un esempio per ridimensionare rispetto alla tabella contenuta nella pagina
resize_tabella.htm
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<style type="text/css">
body {
margin:0px;
}
</style>
<script type="text/javascript">
function ripos(){
var obj=document.getElementById('id_tabella')
var w=obj.offsetWidth+12
var h=obj.offsetHeight+30
var sW=screen.availWidth
var sH=screen.availHeight
self.resizeTo((w<sW?w:sW),(h<sH?h:sH))
self.moveTo((w<sW?(sW-w)/2:0),(h<sH?(sH-h)/2:0))
}
</script>
</head>
<body onload="ripos()" onresize="ripos()">
<table width="400" cellpadding="5" cellspacing="1" border="1" id="id_tabella">
<tbody>
<tr><td>a</td><td>b</td></tr>
<tr><td>c</td><td>d</td></tr>
<tr><td>e</td><td>f</td></tr>
<tr><td>g</td><td>h</td></tr>
<tr><td>i</td><td>l</td></tr>
<tr><td>m</td><td>n</td></tr>
</tbody>
</table>
</body>
</html>