Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Two nested divs vertically filling parent div

0 views
Skip to first unread message

John Hamm

unread,
Sep 17, 2002, 4:45:38 PM9/17/02
to
For this question, please reference:
http://www.hammoco.com/tests/example.gif


Is there a way using CSS to set the height of a DIV to the remainder
of the vertical space in a parent DIV? Similar to "TD WIDTH=*" but
for height? If not, what is the correct way to handle this in CSS?

In the image above, div1 is explicitly set to a height of "50px".
div3 is the parent div, set to a relative height of "100%". div2 is
below div1 (both inside of div3). div2 needs to fill up the rest of
the vertical space.

I'm going to be using this solution for both the screen and printer
medias.

0 new messages