Patrick said:
I have long used a script to autosize a window to image size and I was
wondering how I might do the same thing with table size. It seems like
it should be as simple, but I don't know what I'm doing. Any
suggestions would be appreciated. Thanks.
An HTML table has no fixed size/width by default. One advantage
of HTML is that content is not scaled down (e.g. like PDF documents)
but flows according to the dimensions of the container box.
You can use CSS to specify the minimum width for compliant UAs
(min-width property, does not work in [recent] IEs) and you can
use JavaScript to resize the popup window if its width is below
that minimum width. For the height, you can resize the window
as well.
But keep in mind that many people dislike having their windows
resized automatically. Just think of tabbed browsing, for example.
window.open(...) may create a new Window object but will not create
a new window. It will create a new tab in the current window
instead, and if you resize that window, other documents displayed
in other tabs of that window may become not as well legible.
Allow scrollbars and/or an resizable popup window, that is the
best you can do.
PointedEars