Sent by Alan Gresley on 28 October 2008 11:11
Doug Jolley wrote:
CC to list
>> The line box is an anonymous inline element
>
> OK. I get that and thanks for clarifying that point.
>
> However, I'm still confused about how vertical-align:middle works. I
> followed the "line height calculations" link in your link [1]. There
> I found a rather amazing thing. I found (in step 2) that vertical
> alignment is used in the determination of the line height. IOW,
> elements are vertically aligned *BEFORE* the line height is determined
> and as a part of the procedure for determining the line height. Based
> on that, I would conclude that line height can not be a factor in
> determining vertical alignment. Now I'm really confused.
>
> However, you did clarify how a line box can be an element. Thanks. I
> appreciate that clarification.
>
> ... doug
Your welcome Doug,
I am always discovering new things with CSS and coding. Your confusion
prompted me to do a test case so I could understand and hopefully
explain what the specs are suggesting. :-)
<http://css-class.com/test/css/visformatting/vertical-align.htm>
Test 1 and 3 with vertical-align:middle does indicate that the line box
line-height [1] is calculated after the vertical alignment is calculated.
[1] <http://www.w3.org/TR/CSS21/visudet.html#line-height>
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
http://www.wearechange.org/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/