Thursday, October 13, 2005, 6:09:31 PM, Andreas wrote:
> I’m trying to vertical-align the button to the middle of the textbox
> http://www.selfinflicted.org/css/quick.html

http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align
This property defaults to "baseline" so although your #button is in the
middle, #search is still on the baseline.

Add vertical-align:middle; to #search as well, or simply:
#wrap input {vertical-align:middle;} to handle both.

> but since the vertical-align css is based on the elements parent

It's not based on #wrap, but rather the first /line box/ in #wrap.  The
specs call the line box a "strut" (I've removed bits as it applies to your
situation): 

"The following values only have meaning with respect to ... the strut of a
parent block-level ... element." 

HTH,
Steve
-- 
http://mrclay.org/ : http://thefrenchhorns.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to