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

Re: Another small question

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 10 Jun 2004 10:29:32 -0700
Message-ID: <003101c44f10$7ee367c0$0301a8c0@AFedoniouk>
To: "Chris Lilley" <chris@w3.org>, "David Woolley" <david@djwhome.demon.co.uk>
Cc: <www-style@w3.org>

Thank you, guys. Crystall clear now.

Source of my doubts was the fact that Gecko and Opera/InternetExplorer
disagree about image position in my sample.

And about name of the value. 'middle' is actually should have name
'text-middle' as it use font attributes as 'text-top' and 'text-bottom'.
'top' and 'bottom' use line box height, my initial thought was 'middle' is
also using line box height.
For now vertical-align: middle for elements logically conflicts with
vertical-align: middle for containers.

And how to place image in the middle of line box (height)?

Andrew Fedoniouk.
http://terrainformatica.com


> AF> Does anybody know what is it this 'x-height' here:
>
> AF> "middle
> AF> Align the vertical midpoint of the box with the baseline of the parent
box
> AF> plus half the x-height of the parent."
> AF> [http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align]
>
> http://www.w3.org/TR/REC-CSS2/fonts.html#descdef-x-height
>
> AF> And what vertical position of IMG must be here:
>
> AF> p { line-height:20px; }
> AF> img { vertical-align:middle; width:4px; height:4px }
>
> AF> <p >sample text <img src="..." /></p>
>
> There is not enough information in that sample to compute the result.
>
>
> -- 
>  Chris Lilley                    mailto:chris@w3.org
>  Chair, W3C SVG Working Group
>  Member, W3C Technical Architecture Group
>
Received on Thursday, 10 June 2004 13:29:35 GMT

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