<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi!<BR>
Interesting,&nbsp;my mail is&nbsp;adding some funny font sizes recently, while yours is posting recursively!<BR>
&nbsp;<BR>
&gt;Yes I know that, - 'couldn't leave the height property empty, could I?<BR>&gt;It wasn't a complaint -- I just simply meant that your code worked&nbsp;<BR>I understand.<BR>&nbsp;<BR>&gt;??? Fit's exactly what?<BR> The desired body width!<BR>
<BR>&gt;I'm sorry, I don't really know what you're trying to do. However, if <BR>&gt;you will explain it, I will be more than happy to test.<BR><BR>
Geoff was asking of a way to shrink the main window so he could open another one,<BR>
but make sure the body width fits the given new window size. So he needed to know<BR>
a foreheads what size <FONT>should the window be</FONT>&nbsp;set to, in order&nbsp;that the contents will fit properly.<BR>
Since he could get the body width, but not the window width in total including eventual vertical <BR>
scrollbars when present. (At least that's how I understood his problem).<BR>
&nbsp;<BR>
So my approach was as follows:<BR>
<UL>
<LI>
<DIV>Get the Browser type by vendor name. </DIV></LI>
<LI>
<DIV>Check if Vscrollbar&nbsp;is needed, therefore present or not.</DIV></LI>
<LI>
<DIV><FONT>Assign a known scrollbar width to var with alternative values for on or off</FONT></DIV></LI>
<LI>
<DIV>Declare unique browser frame constant widths&nbsp;connected to a&nbsp;BR vendor name.</DIV></LI>
<LI>
<DIV>Use the detected browser name as instruction to get curr br&nbsp;frame size and set frame variable&nbsp;one-shot.</DIV></LI>
<LI>
<DIV>Gather all processed var values into our final var making it available for other script demands. So we can&nbsp;finally&nbsp;make the window&nbsp;resize&nbsp;around&nbsp;any given document body width. </DIV></LI></UL>
Other thing in mind was not to use functions&nbsp;or use up any&nbsp;"event" that may be needed by any other ready&nbsp;scripts on the page.&nbsp;&nbsp;<BR>
&nbsp;<BR>
*For correct scrollBar detection the &lt;BODY SCROLL=Auto&gt; <FONT>should</FONT> not&nbsp;be omitted if IE encountered!<BR>
<BR>~~~<BR>
&gt;Yes, from my experience 16 pixel wide scrollbars have been typical of <BR>&gt;Mac since 1984.<BR>That's&nbsp;great news, thanks tedd. It means that this code is widely&nbsp;compatible now.<BR>
Pity, new generations of NN and OP are not supporting "window.resizeTo()".<BR>
&nbsp;<BR>
Anybody know why???<BR>~~~<BR><BR>
&gt; Interesting,&nbsp;on&nbsp;the&nbsp;Mac&nbsp;in&nbsp;Safari,&nbsp;FireFox,&nbsp;IE&nbsp;and&nbsp;Netscape,&nbsp;it&nbsp;works&nbsp;<BR>&gt; throughout&nbsp;all&nbsp;browser&nbsp;window&nbsp;sizes.&nbsp;In&nbsp;Opera,&nbsp;it&nbsp;doesn't&nbsp;work&nbsp;--&nbsp;but&nbsp;<BR>&gt; Opera&nbsp;has&nbsp;problems&nbsp;with&nbsp;the&nbsp;url&nbsp;as&nbsp;well.<BR>&gt; <BR>&gt; What&nbsp;browser&nbsp;and&nbsp;OS&nbsp;are&nbsp;you&nbsp;running&nbsp;the&nbsp;test&nbsp;on?<BR><BR>
PC Win / IE, <FONT><FONT>Fx </FONT></FONT><BR>Regards.<BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Troy&nbsp;III<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressive&nbsp;art&nbsp;enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><br /><hr />Express yourself instantly with Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>