471,618 Members | 1,195 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Anchoring a DIV on Expand/Collapse

Hi.

I have two divs inside a containing div

<div id=container>
<div id=top>
</div>
<div id=bottom>
</div>
</div>

Both the top and bottom divs expand and collapse. The
"top" div has a static position and must stay put. When
it is expanded, it pushes down the "bottom" div to make
room for its content.

Now, I want to anchor the bottom div so, when the top
one collapses, its bottom stays put and the top part
move up, elongating the entire bottom div.

I tried position:absolute; bottom:0 with the bottom div
but, then, it doesn't react to the opening and closing of
the top div.

how do I go about this?

thanks.

Sep 21 '07 #1
0 2339

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by James Hurrell | last post: by
7 posts views Thread by peter | last post: by
1 post views Thread by Randy Starkey | last post: by
4 posts views Thread by Gönen EREN | last post: by
4 posts views Thread by Rabel | last post: by
3 posts views Thread by Greg | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.