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

Re: Proposal: content-vertical-alignment

From: Emrah BASKAYA <emrahbaskaya@hesido.com>
Date: Fri, 10 Jun 2005 16:34:11 +0300
To: "Lachlan Hunt" <lachlan.hunt@lachy.id.au>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.sr5pa9bk8nstxa@lomarnona>

On Fri, 10 Jun 2005 14:47:00 +0300, Lachlan Hunt  
<lachlan.hunt@lachy.id.au> wrote:

>
> Emrah BASKAYA wrote:
>> Proposal: A new property that will allow any content in a given element  
>> to
>> be centered vertically:
>> content-vertical-align
>
> Just incase you, and anyone else, are unaware of this fact, vertical  
> centering is already possible using at least 2 different methods that I  
> know of (ignoring browser support issues).
>
> The following examples work with this minimal HTML document, and center  
> the p element both horizontally and vertically:
> <html>
>    <title>Vertical Center</title>
>    <body>
>      <p>test
>
> Example 1:
....

Thanks for pointing this out.

It takes at least two wrapping elements (one table, and one table-cell)  
and its content wrapping element, but still, it would be the only way to  
go if content-vertical-align is not accepted, it is good to know there is  
a way (so there is a way.) (Tho not properly supported by that one  
browser, this isn't css's fault.)

Which is another reason to why we need a content vertical-align: We can  
get rid of the extra syntax (and make use of percentages) needed to do the  
job, make it easier on the eye, avoid mixing-up of already misundertood  
vertical-align property (which should be named inline-vertical-align btw)

I still think this proposal brings something nice to CSS, whose motto is  
seperation of style from content, so I am backing it like before.


-- 
Emrah BASKAYA
www.hesido.com
Received on Friday, 10 June 2005 13:34:25 GMT

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