How to resize a Webpage?

They have: 50 posts

Joined: Aug 2001

I was wondering if there was a script that resizes the webpage so that it fits each monitor automatically.

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

This script loads the page in a maximum window no matter the screensize. The script differs from other so called 'fullscreen-scripts' that make the browser window dissapear.

<script language="javascript">

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}

//-->

&lt;/script&gt;
'

Hope it helps,

Shakespeare: onclick || !(onclick)

Busy's picture

He has: 6,151 posts

Joined: May 2001

or the other way just make your tables to width="100%" so the layout will always be at its widest on all screen sizes.

They have: 50 posts

Joined: Aug 2001

cool, thanks for your help.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.