Topic: Height issues ad infinitum (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: College Station, TX |
posted 04-18-2006 22:34
First the good news: I've been hired by a web design company here in town. (Do me a favor and DON'T look at their portfolio. I've only been here a month ) I'm working on my first full design for them and I fear I may have gone a bit too ambitious. |
Bipolar (III) Inmate From: College Station, TX |
posted 04-19-2006 02:01
Well, I found a javascript solution. The only drawback is that it seems to crash IE if the window is resized small enough. |
Maniac (V) Inmate From: Cell 666 |
posted 04-19-2006 23:01 |
Bipolar (III) Inmate From: College Station, TX |
posted 04-20-2006 16:16
Well, aquainted. There were too many background images to make that possible. |
Nervous Wreck (II) Inmate From: |
posted 04-21-2006 08:04
Best javascript solution: |
Bipolar (III) Inmate From: College Station, TX |
posted 04-21-2006 19:53
The code I'm currently using seems much less bloated. code: function resize(){ var frame = document.getElementById("sidebar"); var htmlheight = document.body.parentNode.scrollHeight; var windowheight = window.innerHeight; if ( htmlheight < windowheight ) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; } else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; } } |