This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17621 - Can "height" automatically occupy the remaining space of parent DOM?
Summary: Can "height" automatically occupy the remaining space of parent DOM?
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: Positioned Layout (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 02:02 UTC by Yang Sun
Modified: 2012-06-28 02:02 UTC (History)
0 users

See Also:


Attachments

Description Yang Sun 2012-06-28 02:02:58 UTC
Hi CSS guys:

let me assume that parent DOM has three child DOM which are a, b, c

<div id="parent" style="height:300px;">
       <div id="child a" style="height:30px;"></div>
       <div id="child b"style="height:100%;"></div>
        <div id="child c" style="height:60px;"></div>
</div>

if we declare style like above, the div b's height will be 300px the same with div parent, and the total height of a+b+c will e 390px, which will exceed parent dom's height 300px.

I want to propose that, can we let height not equal to parent DOM's height, but equal to parent DOM's remaining height, which in this example will be "300-30-60" px.

comments and suggestions are welcome