ray wrote:
...
> <a style="font-size:150px;" href="#"><img style="height:20px;" src="foo.jpg"
> /></a>
> where the img would be positioned? and why?

The initial value for vertical-align, baseline, applies. It affects the 
inline level elements in a line box. Therefore, the image, being inline 
by default, should align with the baseline of the parent <a>-element.

CSS 2.1: 9.4.2 Inline formatting context;
CSS 2.1: 10.8 Line height calculations: the 'line-height' and 
'vertical-align' properties.

The absolute vertical position of the baseline depends on the font metrics.

Ingo

-- 
http://www.satzansatz.de/css.html
http://www.dolphinsback.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to