PDA

View Full Version : Div expanding like tree and height problems with table



TrappedAtUF
03-12-2005, 07:28 PM
I use .display to hide and unhide div's in my document to make it look like a tree. It works great except that when a div is expanded the document height is also expanded, but when the div is hidden again the document height stays the same and screws up my table (because my table is spaced to fill 100% of the page, but the page is now bigger because it count's the space where the div was). How can I fix this?

Here's my page... http://www.msnnethosting.com/careers.html

Here's some code:
<!--
function hide_popup(popupToHide){
if (popupToHide == 1) {
close1.style.display="none";
career1.style.display="none";
open1.style.display="block";}
}

function show_popup(popupToShow){
if (popupToShow == 1) {
open1.style.display="none";
close1.style.display="block";
career1.style.display="block";}
}
//-->

<div id="open1" onclick="show_popup(1)">