|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
I think thats what I was looking for... I appreciate the help, and your time.
Mike |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > not quite sure (window resizing) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|