- From: L. David Baron <dbaron@dbaron.org>
- Date: Wed, 4 Jun 2008 18:04:24 -0700
- To: Andrew Fedoniouk <news@terrainformatica.com>
- Cc: www-style@w3.org
On Wednesday 2008-06-04 17:50 -0700, Andrew Fedoniouk wrote: > Consider following markup: > > <body> > <div>On the top</div> > <div>On the bottom</div> > </body> > > and we would like to "stick" second div to the bottom and first one to > the top of the view. How would you > accomplish that with XUL flexes? Probably I have missed something but > that is impossible with XUL flexes. <body style="display:box; box-orient:vertical"> <div>On the top</div> <div style="box-flex: 1"></div> <!-- maybe needs 'display: box' ? --> <div>On the bottom</div> </body> > Flexibility is really a length unit rather than some property. No, since some layout models (traditional document layout) use one dimension as input and the other as output; you can only flex in a dimension that is input to the algorithm. In the existing CSS model, in many cases, there is no sensible height that is input to the algorithm (or, depending on how you look at it, multiple heights that might be of interest). -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/
Received on Thursday, 5 June 2008 01:05:02 UTC