W3C home > Mailing lists > Public > www-style@w3.org > June 2005

Re: Proposal: content-vertical-alignment

From: <leslie.brown@evidian.com>
Date: Thu, 9 Jun 2005 22:29:23 +0200
To: www-style@w3.org
Message-ID: <OFE356772C.C8BD28AA-ONC125701B.006D7992@evcl.evidian.com>

> One advantage of having to deal with the content position
> (content-vertical-align) instead of position relative to the parent
> (margin: auto) is that, we would not *need* to have a parent to adjust 
to.

It also suggests another possibility: "content-vertical-align:distribute"

"distribute" would aim to achieve a result like this:
1) Image + three (or more) blocks

---------------Container-----------------
XXXXXXXXXXXXXXXXX   Block flush with
XXXXX IMAGE XXXXX   top of image
XXXXX IMAGE XXXXX 
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   The spage above 
XXXXX IMAGE XXXXX   this middle block
XXXXX IMAGE XXXXX   is the same as
XXXXX IMAGE XXXXX   the space below
XXXXX IMAGE XXXXX 
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   This block is flush 
XXXXX IMAGE XXXXX   with the bottom of
XXXXXXXXXXXXXXXXX   the image.
-------------End of container------------

or like this
2) Image + paragraph
---------------Container-----------------
XXXXXXXXXXXXXXXXX   Text is neatly
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   spread over 
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   the vertical
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   space between
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   the top and
XXXXX IMAGE XXXXX
XXXXX IMAGE XXXXX   bottom of
XXXXX IMAGE XXXXX
XXXXXXXXXXXXXXXXX   the image.
-------------End of container------------

But I imagine implementation would be difficult 
even for these two simplest (?) cases.

Les Brown
Received on Thursday, 9 June 2005 20:29:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:37 GMT