W3C home > Mailing lists > Public > www-style@w3.org > April 2010

[css3-values] Proposal for auto fitting value for height and width

From: Adam Del Vecchio <adam.delvecchio@go-techo.com>
Date: Wed, 28 Apr 2010 23:37:01 -0400
Message-ID: <4BD8FEDD.2090006@go-techo.com>
To: www-style@w3.org

Hello,

I'd like to propose an auto fitting value that could be used with the 
height and width propertys.

What this would do is it would have an object in the DOM fill all 
remaining space. If it is used with a child of the body element, it 
would fill the remaining screen space.

Possibly something like:

Height: fit; or width: fit; ?

Example, if an element directly opened after the body tag has an ID of 
#wrap and the stylesheet says wrap should have height: fit; then #wrap 
would fill the screen. If after #wrap is closed, and another element is 
opened with a height of lets say 100px, this element is pushed to the 
bottom, and the first element (located at the top) is given a height of 
browser window minus 100px.

Example 2, if an element has a height of 500px, and a child element has 
a height of 150px, and a sibling of that child has a height of fit, that 
element's height is 350px.

Thoughts?
Received on Thursday, 29 April 2010 08:44:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT