Re: Another small question

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 UTC