varying DIV sizes...help!!!

liunx

Guest
I have a page that contains several DIV tags. I use absolute positioning to control their visibility. My problem is that the page defaults to the size of the largest DIV. This results in whitespace at the end of DIVs that are shorter than the longest DIV. I would like for the page length to vary with the size of my DIV.

Can someone please explain how to accomplish this and/or point me in the right direction?

TIA
Bill:confused:Am I correct in believing you want to hide/show DIVs so that when they are not visible they do not take up page space? If so, you can use "display: none" to remove a DIV from the page's flow, so it doesn't take up any space, and "dispay: inline" or "display: block" to show it again. You can also set the element.style.display property using JavaScript.

If I have misinterpreted what you want, please post code or a URL so I can see the problem.

AdamThat is exactly what I needed. Much thanks for the quick response.

Bill:D
 
Back
Top