#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    I would like my pages to show up full size in a browser window no matter how big or little it is (atleast anywhere from 640x480 to 800x600 or 1240x768) I am not even sure if Javascript is the technology I am looking for, however it seems most likely.

    I could do it in PHP, I believe, however, I don't think I can do it with the page automatically resizing if I max/min the window... which is what I am looking for...

    A point in the right direction would be appreciated, Thanks.


    Mike
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    SPAIN
    Posts
    47
    Rep Power
    15
    Put the following inside <head></head> :

    <script language="JavaScript">

    <!--

    self.moveTo(0,0);

    self.resizeTo(screen.availWidth,screen.availHeight);
    //-->

    </script>

    it works in both browsers
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    I tried this, but it didn't work. When you go to devshed.com (with the browser window maximized) you see it, filling most of the browser space. If you click on the restore/maximize button in the browser, devshed.com resizes itself to fit completely in the browser... thats what I'm talking about...

    Thanks,
    Mike
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    SPAIN
    Posts
    47
    Rep Power
    15
    Well, in this case, I don't understand where is the problem: devshed.com uses tables with relative width; that is

    <table border=0 cellpadding=3 cellspacing=0 width=100%>

    instead of <table border=0 cellpadding=3 cellspacing=0 width=800>


    this means: "use all the possible width for this table" instead of "this table is 800 pixels width"

    create cells with fixed size for the elements that must have the same width in all resolutions (navigation bars, news, ...)

    The page changes dinamically when you resize the browser window.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    I think thats what I was looking for... I appreciate the help, and your time.

    Mike

Similar Threads

  1. Resizing a window when loading a new page
    By seanpaul in forum HTML Programming
    Replies: 4
    Last Post: October 24th, 2003, 02:37 AM
  2. Need help on resizing popup window
    By bnow in forum HTML Programming
    Replies: 2
    Last Post: September 23rd, 2003, 11:59 AM
  3. resizing content according to window size??
    By psingh in forum HTML Programming
    Replies: 5
    Last Post: August 11th, 2003, 09:32 AM
  4. custom everything in new window, how?
    By edwinx in forum HTML Programming
    Replies: 6
    Last Post: June 29th, 2001, 01:06 AM
  5. resizing a new window
    By underwarez in forum HTML Programming
    Replies: 3
    Last Post: March 19th, 2001, 09:06 PM

IMN logo majestic logo threadwatch logo seochat tools logo