I'd like to resize my page depending on the window browser size. It would be cool to do it like but I'm only looking to resize the main content block.
Currently, the main content block (div) is set to a specific width 800px; If the browser window is resized to below 800px in width, the main content block should be resized to fully fit inside the browser.
It seems as though this could be easily accomplished by modifying document properties (eg [psudeo] document.content.width = browser.window.width) but I'm not sure how what event to trap and how to do it.
Any help is appreciated.
-Geates
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
"There are seldom good technological solutions to behavioral problems."
- Ed Crowley, Exchange guru and technology curmudgeon
Currently, the main content block (div) is set to a specific width 800px; If the browser window is resized to below 800px in width, the main content block should be resized to fully fit inside the browser.
It seems as though this could be easily accomplished by modifying document properties (eg [psudeo] document.content.width = browser.window.width) but I'm not sure how what event to trap and how to do it.
Any help is appreciated.
-Geates
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
"There are seldom good technological solutions to behavioral problems."
- Ed Crowley, Exchange guru and technology curmudgeon