> From: ray <[EMAIL PROTECTED]> > Date: Wed, 19 Nov 2008 11:29:53 +0800 > To: <css-d@lists.css-discuss.org> > Subject: [css-d] about inline, replaced element > > Hi, All > > What if an inline, replaced element resides in another inline element? for > example: > <a href="#"><img src="foo.jpg" /></a> > How the image would be positioned with respect to the anchor element? For > instance, if the font-size set on the anchor is very large and the height > set on img is very small, for example: > <a style="font-size:150px;" href="#"><img style="height:20px;" src="foo.jpg" > /></a> > where the img would be positioned? and why? > I searched the CSS 2.1 specification, but didn't find any information. Could > somebody help me out? Thanks in advance. > > All the best
The vertical-align property may be used to alter the vertical positioning of an inline element, relative to its parent element or to the element's line. See http://htmlhelp.com/reference/css/text/vertical-align.html. --- Alyda ______________________________________________________________________ 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/