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 19:04:33 -0400
To: "www-style@w3.org" <www-style@w3.org>
Message-Id: <20100428230436.C5CDB401E@mx1.go-techo.com>
Hello,&nbsp;

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

What this would do 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 heigt 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.&nbsp;

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.&nbsp;

Thoughts?

--
Adam Del Vecchio (Mobile)
President - Techo Technology
Received on Thursday, 29 April 2010 08:44:01 GMT

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