PDA

View Full Version : hiding a div layer


gablernyc
07-15-2003, 09:06 PM
I currently have a script that hides a div layer when you click on a toggle button. However, we need to have the footer that is in a seperate table move up when the div is hidden. Is there a way to do this either using another concept or does anyone know of a script out there that can handle this?

Thanks in Advance for your help...

Roy Sinclair
07-15-2003, 10:19 PM
If your code is only altering the visibility property of the div then the div will continue to "hold" it's space on the page. Change the show/hide routine to alter the display property from "blocK' to "hidden" and back and the other content will move up to take it's place. Exception: Netscape 4.x browsers will NEVER update the page in this fashion, if you're supporting Netscape 4 then you'll simply have to accept that space.